summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-12-01 08:27:01 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-12-01 19:13:12 +0000
commitdacd0e94199f154cac5875ec06430df6947e251b (patch)
tree729ee93483b1b4ddb80400cb78bec5091a2d32b0 /vcl/quartz
parentaa68c99d88fd7abe08c4aee5206c859a0cdba38e (diff)
Unused code
Change-Id: Idfc964930c242d752a78cd109d75d809bce4de11 Reviewed-on: https://gerrit.libreoffice.org/31470 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/salgdi.cxx19
-rw-r--r--vcl/quartz/salgdicommon.cxx12
2 files changed, 2 insertions, 29 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 4a363b3892ef..c2dba0242839 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -176,22 +176,7 @@ bool CoreTextFontFace::GetFontCapabilities(vcl::FontCapabilities &rFontCapabilit
}
mbFontCapabilitiesRead = true;
- int nBufSize = 0;
- // prepare to get the GSUB table raw data
- nBufSize = GetFontTable( "GSUB", nullptr );
- if( nBufSize > 0 )
- {
- // allocate a buffer for the GSUB raw data
- std::vector<unsigned char> aBuffer( nBufSize );
- // get the GSUB raw data
- const int nRawLength = GetFontTable( "GSUB", &aBuffer[0] );
- if( nRawLength > 0 )
- {
- const unsigned char* pGSUBTable = &aBuffer[0];
- vcl::getTTScripts(maFontCapabilities.maGSUBScriptTags, pGSUBTable, nRawLength);
- }
- }
- nBufSize = GetFontTable( "OS/2", nullptr );
+ int nBufSize = GetFontTable( "OS/2", nullptr );
if( nBufSize > 0 )
{
// allocate a buffer for the OS/2 raw data
@@ -827,7 +812,7 @@ void AquaSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFontData, bool bV
break;
sal_Ucs nUcsChar = static_cast<sal_Ucs>(nChar);
- sal_uInt32 nGlyph = ::MapChar( pSftFont, nUcsChar, bVertical );
+ sal_uInt32 nGlyph = ::MapChar( pSftFont, nUcsChar );
if( nGlyph > 0 )
{
rUnicodeEnc[ nUcsChar ] = nGlyph;
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index ed6e4dbb468c..d289e010e162 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -275,18 +275,6 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile,
aTempEncs[i] = pEncoding[i];
sal_GlyphId aGlyphId(pGlyphIds[i] & GF_IDXMASK);
- if( pGlyphIds[i] & GF_ISCHAR )
- {
- bool bVertical = (pGlyphIds[i] & GF_ROTMASK) != 0;
- aGlyphId = ::MapChar( pSftFont, static_cast<sal_uInt16>(aGlyphId), bVertical );
- if( aGlyphId == 0 && pFontData->IsSymbolFont() )
- {
- // #i12824# emulate symbol aliasing U+FXXX <-> U+0XXX
- aGlyphId = pGlyphIds[i] & GF_IDXMASK;
- aGlyphId = (aGlyphId & 0xF000) ? (aGlyphId & 0x00FF) : (aGlyphId | 0xF000 );
- aGlyphId = ::MapChar( pSftFont, static_cast<sal_uInt16>(aGlyphId), bVertical );
- }
- }
aShortIDs[i] = static_cast<sal_uInt16>( aGlyphId );
if( !aGlyphId && nNotDef < 0 )
{