summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-06 18:18:31 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-06 18:18:31 +0000
commit52f011adbf4216e3507ccd5be6753762e0ff7b64 (patch)
treeb6a72c452af94f781f52ffdd530062adff705d91 /fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
parent472bb7f919736ae58461f653597eb6854119cca9 (diff)
downloadpdfium-52f011adbf4216e3507ccd5be6753762e0ff7b64.tar.xz
Remove CXFA_FFDocHandler
None of the methods on this class are ever called. We check it once to make sure it exists, but the call to get it will create it so it will always exist. Change-Id: I5b53567c4835f4bb4fe52c42baf28d4290ea517f Reviewed-on: https://pdfium-review.googlesource.com/17852 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_context.cpp')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_context.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
index 6496042e7d..4b67d0cf3f 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
@@ -101,12 +101,6 @@ bool CPDFXFA_Context::LoadXFADoc() {
return false;
}
- CXFA_FFDocHandler* pDocHandler = pApp->GetDocHandler();
- if (!pDocHandler) {
- SetLastError(FPDF_ERR_XFALOAD);
- return false;
- }
-
m_pXFADoc->StartLoad();
int iStatus = m_pXFADoc->DoLoad();
if (iStatus != XFA_PARSESTATUS_Done) {