From 2d510f7dc4d6c30cdecef09c5e68c47e98de6ffb Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Tue, 19 Sep 2017 13:36:09 -0400 Subject: Remove unused methods and field in CFFL_FormFiller. Change-Id: Ice5ef31af6e32b6a02072e2a4445b19d4f801d3c Reviewed-on: https://pdfium-review.googlesource.com/14330 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- fpdfsdk/formfiller/cffl_formfiller.cpp | 14 -------------- fpdfsdk/formfiller/cffl_formfiller.h | 5 ----- 2 files changed, 19 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/formfiller/cffl_formfiller.cpp b/fpdfsdk/formfiller/cffl_formfiller.cpp index 2c6138b92b..1ed7ffa420 100644 --- a/fpdfsdk/formfiller/cffl_formfiller.cpp +++ b/fpdfsdk/formfiller/cffl_formfiller.cpp @@ -46,17 +46,6 @@ void CFFL_FormFiller::DestroyWindows() { m_Maps.clear(); } -void CFFL_FormFiller::SetWindowRect(CPDFSDK_PageView* pPageView, - const CFX_FloatRect& rcWindow) { - if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false)) - pWnd->Move(CFX_FloatRect(rcWindow), true, false); -} - -CFX_FloatRect CFFL_FormFiller::GetWindowRect(CPDFSDK_PageView* pPageView) { - CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); - return pWnd ? pWnd->GetWindowRect() : CFX_FloatRect(); -} - FX_RECT CFFL_FormFiller::GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot) { ASSERT(pPageView); @@ -160,9 +149,6 @@ bool CFFL_FormFiller::OnMouseMove(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot, uint32_t nFlags, const CFX_PointF& point) { - if (m_ptOldPos != point) - m_ptOldPos = point; - CPWL_Wnd* pWnd = GetPDFWindow(pPageView, false); if (!pWnd) return false; diff --git a/fpdfsdk/formfiller/cffl_formfiller.h b/fpdfsdk/formfiller/cffl_formfiller.h index 8078d35519..26f6052df8 100644 --- a/fpdfsdk/formfiller/cffl_formfiller.h +++ b/fpdfsdk/formfiller/cffl_formfiller.h @@ -115,10 +115,6 @@ class CFFL_FormFiller : public CPWL_Wnd::ProviderIface, CFX_FloatRect FFLtoWnd(CPDFSDK_PageView* pPageView, const CFX_FloatRect& rect); - void SetWindowRect(CPDFSDK_PageView* pPageView, - const CFX_FloatRect& rcWindow); - CFX_FloatRect GetWindowRect(CPDFSDK_PageView* pPageView); - bool CommitData(CPDFSDK_PageView* pPageView, uint32_t nFlag); virtual bool IsDataChanged(CPDFSDK_PageView* pPageView); virtual void SaveData(CPDFSDK_PageView* pPageView); @@ -160,7 +156,6 @@ class CFFL_FormFiller : public CPWL_Wnd::ProviderIface, CFX_UnownedPtr m_pWidget; bool m_bValid; CFFL_PageView2PDFWindow m_Maps; - CFX_PointF m_ptOldPos; }; #endif // FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ -- cgit v1.2.3