From e6ce3428fce89f17e2e416adc567a401901f340b Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 27 Mar 2018 19:36:04 +0000 Subject: Simplify some XFA font manager creation 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 Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffapp.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'xfa/fxfa/cxfa_ffapp.cpp') 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_FFApp::CreateDoc( return pDoc; } -void CXFA_FFApp::SetDefaultFontMgr( - std::unique_ptr pFontMgr) { - if (!m_pFontMgr) - m_pFontMgr = pdfium::MakeUnique(); - 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(); -- cgit v1.2.3