summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffapp.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-03-27 19:36:04 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-27 19:36:04 +0000
commite6ce3428fce89f17e2e416adc567a401901f340b (patch)
treee8341b8deb3856e0a566743671a9ff80a55ce911 /xfa/fxfa/cxfa_ffapp.cpp
parent43a25e87afb9b91fd7c0cae2a3429da104d58988 (diff)
downloadpdfium-e6ce3428fce89f17e2e416adc567a401901f340b.tar.xz
Simplify some XFA font manager creationchromium/3382
For the cases where we always initialize the font managers, do it in the constructor instead of as a secondary call. Change-Id: Ic59b331d1eb357878cd5786b187b5b79bace4498 Reviewed-on: https://pdfium-review.googlesource.com/29291 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffapp.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffapp.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/xfa/fxfa/cxfa_ffapp.cpp b/xfa/fxfa/cxfa_ffapp.cpp
index 881d05d6b9..21ac081629 100644
--- a/xfa/fxfa/cxfa_ffapp.cpp
+++ b/xfa/fxfa/cxfa_ffapp.cpp
@@ -53,17 +53,6 @@ std::unique_ptr<CXFA_FFDoc> CXFA_FFApp::CreateDoc(
return pDoc;
}
-void CXFA_FFApp::SetDefaultFontMgr(
- std::unique_ptr<CFGAS_DefaultFontManager> pFontMgr) {
- if (!m_pFontMgr)
- m_pFontMgr = pdfium::MakeUnique<CXFA_FontMgr>();
- m_pFontMgr->SetDefFontMgr(std::move(pFontMgr));
-}
-
-CXFA_FontMgr* CXFA_FFApp::GetXFAFontMgr() const {
- return m_pFontMgr.get();
-}
-
CFGAS_FontMgr* CXFA_FFApp::GetFDEFontMgr() {
if (!m_pFDEFontMgr) {
m_pFDEFontMgr = pdfium::MakeUnique<CFGAS_FontMgr>();