diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-04-12 13:54:39 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-12 13:54:39 +0000 |
commit | 7023b8877475dda639a15d623b5a552f88a6812f (patch) | |
tree | 419e9359df5e36941e61ee18b3a470666253d379 /xfa/fxfa/cxfa_ffdoc.cpp | |
parent | babeeb69b1744e414b46d77de03689682742d99d (diff) | |
download | pdfium-7023b8877475dda639a15d623b5a552f88a6812f.tar.xz |
Remove CXFA_DocumentParser::m_bDocumentParser flag
This CL removes the import data behaviour as it was never called and
cleans up the m_bDocumentParser flag as it will always be used in the
true case.
Change-Id: If90a0a55cc76f406e9987aa71580e90edeaa01ba
Reviewed-on: https://pdfium-review.googlesource.com/30292
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdoc.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffdoc.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/xfa/fxfa/cxfa_ffdoc.cpp b/xfa/fxfa/cxfa_ffdoc.cpp index 24a8a04c03..9dc58adb9a 100644 --- a/xfa/fxfa/cxfa_ffdoc.cpp +++ b/xfa/fxfa/cxfa_ffdoc.cpp @@ -31,7 +31,6 @@ #include "xfa/fxfa/parser/cxfa_acrobat.h" #include "xfa/fxfa/parser/cxfa_acrobat7.h" #include "xfa/fxfa/parser/cxfa_dataexporter.h" -#include "xfa/fxfa/parser/cxfa_dataimporter.h" #include "xfa/fxfa/parser/cxfa_document.h" #include "xfa/fxfa/parser/cxfa_document_parser.h" #include "xfa/fxfa/parser/cxfa_dynamicrender.h" @@ -181,10 +180,7 @@ bool CXFA_FFDoc::ParseDoc(CPDF_Object* pElementXFA) { auto stream = pdfium::MakeRetain<CFX_SeekableMultiStream>(xfaStreams); - // Note, we don't pass the document into the constructor as currently that - // triggers different behaviour in the parser. - CXFA_DocumentParser parser; - parser.SetFactory(m_pDocument.get()); + CXFA_DocumentParser parser(m_pDocument.get()); if (!parser.Parse(stream, XFA_PacketType::Xdp)) return false; @@ -406,9 +402,3 @@ bool CXFA_FFDoc::SavePackage(CXFA_Node* pNode, CXFA_DataExporter exporter; return exporter.Export(pFile, pNode ? pNode : GetXFADoc()->GetRoot()); } - -bool CXFA_FFDoc::ImportData(const RetainPtr<IFX_SeekableStream>& pStream, - bool bXDP) { - auto importer = pdfium::MakeUnique<CXFA_DataImporter>(m_pDocument.get()); - return importer->ImportData(pStream); -} |