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/source/gdi/pdffontcache.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/source/gdi/pdffontcache.cxx')
-rw-r--r-- | vcl/source/gdi/pdffontcache.cxx | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/vcl/source/gdi/pdffontcache.cxx b/vcl/source/gdi/pdffontcache.cxx index 9c1b271b65ba..8140db73ac5b 100644 --- a/vcl/source/gdi/pdffontcache.cxx +++ b/vcl/source/gdi/pdffontcache.cxx @@ -59,19 +59,6 @@ sal_Int32 PDFFontCache::getGlyphWidth( const PhysicalFontFace* pFont, sal_GlyphI if( ! rFontData.m_nWidths.empty() ) { sal_GlyphId nIndex = nGlyph; - if( (nGlyph & GF_ISCHAR) != 0 ) - { - const sal_Ucs cCode = static_cast<sal_Ucs>(nGlyph & GF_IDXMASK); - Ucs2UIntMap::const_iterator it = rFontData.m_aGlyphIdToIndex.find( cCode ); - - // allow symbol aliasing U+00xx -> U+F0xx if there is no direct match - if( it == rFontData.m_aGlyphIdToIndex.end() - && pFont->IsSymbolFont() - && (cCode < 0x0100) ) - it = rFontData.m_aGlyphIdToIndex.find( cCode+0xF000 ); - - nIndex = (it != rFontData.m_aGlyphIdToIndex.end()) ? it->second : 0; - } nIndex &= GF_IDXMASK; if( nIndex < rFontData.m_nWidths.size() ) nWidth = rFontData.m_nWidths[ nIndex ]; |