summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_document.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 13:08:04 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 13:08:04 -0700
commitf3fbe83a0f6c1dfb05722a6f0a4056c53548fb6e (patch)
tree6064580b9ae64ba4fe0517fcb367a426b98634c1 /fpdfsdk/cpdfsdk_document.cpp
parent19c198b7b80633e6030457d276df99aee3ca8ca4 (diff)
downloadpdfium-f3fbe83a0f6c1dfb05722a6f0a4056c53548fb6e.tar.xz
Convert fpdfformfill to use CPDFSDK_FormFillEnvironment
This CL converts to using CPDFSDK_FormFillEnvironment instead of CPDFSDK_Document internally. Review-Url: https://codereview.chromium.org/2398253002
Diffstat (limited to 'fpdfsdk/cpdfsdk_document.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_document.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp
index 37d977ec4c..0aeb91974a 100644
--- a/fpdfsdk/cpdfsdk_document.cpp
+++ b/fpdfsdk/cpdfsdk_document.cpp
@@ -22,14 +22,6 @@
#include "fpdfsdk/fsdk_actionhandler.h"
#include "third_party/base/ptr_util.h"
-// static
-CPDFSDK_Document* CPDFSDK_Document::FromFPDFFormHandle(
- FPDF_FORMHANDLE hHandle) {
- CPDFSDK_FormFillEnvironment* pEnv =
- static_cast<CPDFSDK_FormFillEnvironment*>(hHandle);
- return pEnv ? pEnv->GetSDKDocument() : nullptr;
-}
-
CPDFSDK_Document::CPDFSDK_Document(UnderlyingDocumentType* pDoc,
CPDFSDK_FormFillEnvironment* pEnv)
: m_pDoc(pDoc),