summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-03 11:25:00 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-03 11:25:00 -0700
commite5393582a7f5dbb655a97d64531638b302ee684e (patch)
treeac5503a23a1bcfb2c9d49042227468cc587d1f35 /fpdfsdk
parentc9347083c8b813454e971ce9e648cf7d8b25d60b (diff)
downloadpdfium-e5393582a7f5dbb655a97d64531638b302ee684e.tar.xz
Remove unused CPDFSDK_PageView::ClearFXAnnots
Method is not called, removing. Review-Url: https://codereview.chromium.org/2391663002
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/cpdfsdk_pageview.cpp14
-rw-r--r--fpdfsdk/cpdfsdk_pageview.h3
2 files changed, 2 insertions, 15 deletions
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<CFX_FloatRect>& 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