From e5393582a7f5dbb655a97d64531638b302ee684e Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 3 Oct 2016 11:25:00 -0700 Subject: Remove unused CPDFSDK_PageView::ClearFXAnnots Method is not called, removing. Review-Url: https://codereview.chromium.org/2391663002 --- fpdfsdk/cpdfsdk_pageview.cpp | 14 -------------- fpdfsdk/cpdfsdk_pageview.h | 3 ++- 2 files changed, 2 insertions(+), 15 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/cpdfsdk_pageview.cpp b/fpdfsdk/cpdfsdk_pageview.cpp index bf4d8c6979..beba7b68f4 100644 --- a/fpdfsdk/cpdfsdk_pageview.cpp +++ b/fpdfsdk/cpdfsdk_pageview.cpp @@ -511,20 +511,6 @@ void CPDFSDK_PageView::LoadFXAnnots() { SetLock(FALSE); } -void CPDFSDK_PageView::ClearFXAnnots() { - SetLock(TRUE); - if (m_pSDKDoc && GetFocusAnnot()) { - CPDFSDK_Annot::ObservedPtr pNull; - m_pSDKDoc->SetFocusAnnot(&pNull); - } - m_pCaptureWidget.Reset(); - for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) - m_pSDKDoc->GetEnv()->GetAnnotHandlerMgr()->ReleaseAnnot(pAnnot); - m_fxAnnotArray.clear(); - m_pAnnotList.reset(); - SetLock(FALSE); -} - void CPDFSDK_PageView::UpdateRects(const std::vector& rects) { CPDFSDK_Environment* pEnv = m_pSDKDoc->GetEnv(); for (const auto& rc : rects) diff --git a/fpdfsdk/cpdfsdk_pageview.h b/fpdfsdk/cpdfsdk_pageview.h index ba6001b5e9..fe40300c23 100644 --- a/fpdfsdk/cpdfsdk_pageview.h +++ b/fpdfsdk/cpdfsdk_pageview.h @@ -92,9 +92,10 @@ class CPDFSDK_PageView final : public CPDF_Page::View { int GetPageIndex() const; void LoadFXAnnots(); - void ClearFXAnnots(); + void SetValid(FX_BOOL bValid) { m_bValid = bValid; } FX_BOOL IsValid() { return m_bValid; } + void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } FX_BOOL IsLocked() { return m_bLocked; } #ifndef PDF_ENABLE_XFA -- cgit v1.2.3