diff options
author | tsepez <tsepez@chromium.org> | 2016-12-14 20:10:37 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-14 20:10:37 -0800 |
commit | 72a22025ec4402178cd0b27239bf77cf3a953949 (patch) | |
tree | b9b8a7c42dbe020b08cf44df0902b4e53a8e2ece /core/fxge/ge | |
parent | 37b12ad873198a9644f3de0d2eff001285e1ad42 (diff) | |
download | pdfium-72a22025ec4402178cd0b27239bf77cf3a953949.tar.xz |
Remove unused m_OtfFontData.chromium/2953
In turn, this makes CFX_BinaryBuf::AttachData() unused.
Review-Url: https://codereview.chromium.org/2578793002
Diffstat (limited to 'core/fxge/ge')
-rw-r--r-- | core/fxge/ge/cfx_font.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/fxge/ge/cfx_font.cpp b/core/fxge/ge/cfx_font.cpp index 7be300ff66..24dcb87383 100644 --- a/core/fxge/ge/cfx_font.cpp +++ b/core/fxge/ge/cfx_font.cpp @@ -265,10 +265,6 @@ bool CFX_Font::LoadClone(const CFX_Font* pFont) { m_pSubstFont->m_Family = pFont->m_pSubstFont->m_Family; m_pSubstFont->m_ItalicAngle = pFont->m_pSubstFont->m_ItalicAngle; } - if (pFont->m_OtfFontData.GetSize()) { - m_OtfFontData.AttachData(pFont->m_OtfFontData.GetBuffer(), - pFont->m_OtfFontData.GetSize()); - } m_Face = pFont->m_Face; m_bEmbedded = pFont->m_bEmbedded; m_bVertical = pFont->m_bVertical; @@ -292,10 +288,8 @@ void CFX_Font::SetFace(FXFT_Face face) { CFX_Font::~CFX_Font() { #ifdef PDF_ENABLE_XFA - if (m_bShallowCopy) { - m_OtfFontData.DetachBuffer(); + if (m_bShallowCopy) return; - } #endif // PDF_ENABLE_XFA if (m_Face) { #ifndef PDF_ENABLE_XFA |