summaryrefslogtreecommitdiff
path: root/xfa/fgas/font/cfgas_pdffontmgr.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-07-30 17:06:51 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-30 17:06:51 +0000
commit95121b79bfc0030bf4791be616df860a3e447716 (patch)
treefa6a8b708b93ec9958b84de421746d6ecf256132 /xfa/fgas/font/cfgas_pdffontmgr.h
parent552f1ec14f94c09fce4126b5e72d3c02c150ab35 (diff)
downloadpdfium-95121b79bfc0030bf4791be616df860a3e447716.tar.xz
Remove CFGAS_PDFFontMgr::m_FDE2PDFFont font cache.
This cache is never read. Change-Id: Iaa4dcf8debf01ab783c2e757a19b18c0317d6fe1 Reviewed-on: https://pdfium-review.googlesource.com/39150 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fgas/font/cfgas_pdffontmgr.h')
-rw-r--r--xfa/fgas/font/cfgas_pdffontmgr.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/xfa/fgas/font/cfgas_pdffontmgr.h b/xfa/fgas/font/cfgas_pdffontmgr.h
index 0cc647500b..235f883ce7 100644
--- a/xfa/fgas/font/cfgas_pdffontmgr.h
+++ b/xfa/fgas/font/cfgas_pdffontmgr.h
@@ -18,24 +18,20 @@
class CFGAS_FontMgr;
class CFGAS_GEFont;
class CPDF_Document;
-class CPDF_Font;
class CFGAS_PDFFontMgr : public Observable<CFGAS_PDFFontMgr> {
public:
explicit CFGAS_PDFFontMgr(CPDF_Document* pDoc, CFGAS_FontMgr* pFontMgr);
~CFGAS_PDFFontMgr();
- void SetFont(const RetainPtr<CFGAS_GEFont>& pFont, CPDF_Font* pPDFFont);
RetainPtr<CFGAS_GEFont> GetFont(const WideStringView& wsFontFamily,
uint32_t dwFontStyles,
- CPDF_Font** pPDFFont,
bool bStrictMatch);
private:
RetainPtr<CFGAS_GEFont> FindFont(const ByteString& strFamilyName,
bool bBold,
bool bItalic,
- CPDF_Font** pPDFFont,
bool bStrictMatch);
ByteString PsNameToFontName(const ByteString& strPsName,
bool bBold,
@@ -48,7 +44,6 @@ class CFGAS_PDFFontMgr : public Observable<CFGAS_PDFFontMgr> {
UnownedPtr<CPDF_Document> const m_pDoc;
UnownedPtr<CFGAS_FontMgr> const m_pFontMgr;
- std::map<RetainPtr<CFGAS_GEFont>, CPDF_Font*> m_FDE2PDFFont;
std::map<ByteString, RetainPtr<CFGAS_GEFont>> m_FontMap;
};