diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2016-12-01 08:27:01 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-12-01 19:13:12 +0000 |
commit | dacd0e94199f154cac5875ec06430df6947e251b (patch) | |
tree | 729ee93483b1b4ddb80400cb78bec5091a2d32b0 /vcl/quartz/salgdi.cxx | |
parent | aa68c99d88fd7abe08c4aee5206c859a0cdba38e (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/salgdi.cxx')
-rw-r--r-- | vcl/quartz/salgdi.cxx | 19 |
1 files changed, 2 insertions, 17 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; |