diff options
author | npm <npm@chromium.org> | 2016-08-16 15:37:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-16 15:37:21 -0700 |
commit | b88b8e47fd7adc14c7aff048c0def0579bdd22dd (patch) | |
tree | 50fe31941f6ff8cefa1d6b7eda3834f1f0c34a27 /core/fxge/ge/fx_ge_font.cpp | |
parent | 09213860d9d9e9a88132cf69e60bb9af513fc1fa (diff) | |
download | pdfium-b88b8e47fd7adc14c7aff048c0def0579bdd22dd.tar.xz |
Delete m_ExtHandle and RetainFont because they are not being used.
CFX_SubstFont::m_ExtHandle is never assigned a value different from nullptr.
Similarly, IFX_SystemFontInfo::RetainFont has two implementations.
Both of these return nullptr, so this method is not needed.
Review-Url: https://codereview.chromium.org/2252833002
Diffstat (limited to 'core/fxge/ge/fx_ge_font.cpp')
-rw-r--r-- | core/fxge/ge/fx_ge_font.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/fxge/ge/fx_ge_font.cpp b/core/fxge/ge/fx_ge_font.cpp index 4d3328551f..4e0627fba6 100644 --- a/core/fxge/ge/fx_ge_font.cpp +++ b/core/fxge/ge/fx_ge_font.cpp @@ -103,7 +103,6 @@ FX_BOOL CFX_Font::LoadClone(const CFX_Font* pFont) { if (pFont->m_pSubstFont) { m_pSubstFont.reset(new CFX_SubstFont); m_pSubstFont->m_Charset = pFont->m_pSubstFont->m_Charset; - m_pSubstFont->m_ExtHandle = pFont->m_pSubstFont->m_ExtHandle; m_pSubstFont->m_SubstFlags = pFont->m_pSubstFont->m_SubstFlags; m_pSubstFont->m_Weight = pFont->m_pSubstFont->m_Weight; m_pSubstFont->m_Family = pFont->m_pSubstFont->m_Family; @@ -173,12 +172,6 @@ void CFX_Font::LoadSubst(const CFX_ByteString& face_name, m_Face = CFX_GEModule::Get()->GetFontMgr()->FindSubstFont( face_name, bTrueType, flags, weight, italic_angle, CharsetCP, m_pSubstFont.get()); -#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ - if (m_pSubstFont->m_ExtHandle) { - m_pPlatformFont = m_pSubstFont->m_ExtHandle; - m_pSubstFont->m_ExtHandle = nullptr; - } -#endif if (m_Face) { m_pFontData = FXFT_Get_Face_Stream_Base(m_Face); m_dwSize = FXFT_Get_Face_Stream_Size(m_Face); |