From 4ce3f6e8bdb64624435620e606513d6aba1cafc8 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 8 Mar 2018 15:12:23 +0000 Subject: 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 Reviewed-by: Ryan Harrison --- core/fpdfdoc/ipdf_formnotify.h | 1 - fpdfsdk/cpdfsdk_interform.cpp | 4 ---- fpdfsdk/cpdfsdk_interform.h | 1 - 3 files changed, 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, -- cgit v1.2.3