diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-03-08 15:12:23 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-08 15:12:23 +0000 |
commit | 4ce3f6e8bdb64624435620e606513d6aba1cafc8 (patch) | |
tree | c0a3cbce9e821f4d051cb928e6cd57c61fc46b3c | |
parent | 04d792fb7510e328f508bc81379ca15791af93e7 (diff) | |
download | pdfium-4ce3f6e8bdb64624435620e606513d6aba1cafc8.tar.xz |
Remove uncalled AfterFormImportData
The IPDF_FormNotify::AfterFormImportData method is never called.
Removed.
Change-Id: I0c436193a0af7bc94077bb719e48682bbf7a9b2b
Reviewed-on: https://pdfium-review.googlesource.com/28190
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
-rw-r--r-- | core/fpdfdoc/ipdf_formnotify.h | 1 | ||||
-rw-r--r-- | fpdfsdk/cpdfsdk_interform.cpp | 4 | ||||
-rw-r--r-- | fpdfsdk/cpdfsdk_interform.h | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/core/fpdfdoc/ipdf_formnotify.h b/core/fpdfdoc/ipdf_formnotify.h index 52e5cc96aa..301139b433 100644 --- a/core/fpdfdoc/ipdf_formnotify.h +++ b/core/fpdfdoc/ipdf_formnotify.h @@ -26,7 +26,6 @@ class IPDF_FormNotify { virtual int BeforeFormReset(CPDF_InterForm* pForm) = 0; virtual void AfterFormReset(CPDF_InterForm* pForm) = 0; virtual int BeforeFormImportData(CPDF_InterForm* pForm) = 0; - virtual void AfterFormImportData(CPDF_InterForm* pForm) = 0; }; #endif // CORE_FPDFDOC_IPDF_FORMNOTIFY_H_ diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp index 2d25894c5d..9e4c5f4f97 100644 --- a/fpdfsdk/cpdfsdk_interform.cpp +++ b/fpdfsdk/cpdfsdk_interform.cpp @@ -692,10 +692,6 @@ int CPDFSDK_InterForm::BeforeFormImportData(CPDF_InterForm* pForm) { return 0; } -void CPDFSDK_InterForm::AfterFormImportData(CPDF_InterForm* pForm) { - OnCalculate(nullptr); -} - bool CPDFSDK_InterForm::IsNeedHighLight(FormFieldType fieldType) { if (fieldType == FormFieldType::kUnknown) return false; diff --git a/fpdfsdk/cpdfsdk_interform.h b/fpdfsdk/cpdfsdk_interform.h index a412f05689..7e2ae04b13 100644 --- a/fpdfsdk/cpdfsdk_interform.h +++ b/fpdfsdk/cpdfsdk_interform.h @@ -112,7 +112,6 @@ class CPDFSDK_InterForm : public IPDF_FormNotify { int BeforeFormReset(CPDF_InterForm* pForm) override; void AfterFormReset(CPDF_InterForm* pForm) override; int BeforeFormImportData(CPDF_InterForm* pForm) override; - void AfterFormImportData(CPDF_InterForm* pForm) override; bool FDFToURLEncodedData(uint8_t*& pBuf, size_t& nBufSize); int GetPageIndexByAnnotDict(CPDF_Document* pDocument, |