From a30537f8b07492489e81414c9037af90c8b1448e Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 12 Oct 2016 09:12:47 -0700 Subject: Remove unused widget handler overrides This CL removes override points from the widget hander classes. Review-Url: https://codereview.chromium.org/2410193005 --- fpdfsdk/formfiller/cffl_interactiveformfiller.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'fpdfsdk/formfiller/cffl_interactiveformfiller.cpp') diff --git a/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp b/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp index 27ad4faeb6..e3a136eebe 100644 --- a/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp +++ b/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp @@ -101,23 +101,7 @@ void CFFL_InteractiveFormFiller::OnDraw(CPDFSDK_PageView* pPageView, pWidget->DrawShadow(pDevice, pPageView); } -void CFFL_InteractiveFormFiller::OnCreate(CPDFSDK_Annot* pAnnot) { - if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { - pFormFiller->OnCreate(pAnnot); - } -} - -void CFFL_InteractiveFormFiller::OnLoad(CPDFSDK_Annot* pAnnot) { - if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { - pFormFiller->OnLoad(pAnnot); - } -} - void CFFL_InteractiveFormFiller::OnDelete(CPDFSDK_Annot* pAnnot) { - if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { - pFormFiller->OnDelete(pAnnot); - } - UnRegisterFormFiller(pAnnot); } @@ -533,9 +517,8 @@ CFFL_FormFiller* CFFL_InteractiveFormFiller::GetFormFiller( } void CFFL_InteractiveFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot) { - if (pAnnot) { + if (pAnnot) UnRegisterFormFiller(pAnnot); - } } void CFFL_InteractiveFormFiller::UnRegisterFormFiller(CPDFSDK_Annot* pAnnot) { -- cgit v1.2.3