Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: fpdfsdk/cpdfsdk_pageview.cpp

Issue 2391663002: Remove unused CPDFSDK_PageView::ClearFXAnnots (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/cpdfsdk_pageview.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/cpdfsdk_pageview.cpp
diff --git a/fpdfsdk/cpdfsdk_pageview.cpp b/fpdfsdk/cpdfsdk_pageview.cpp
index bf4d8c697970d85a68f7aa4f86805760e7706576..beba7b68f454506307000e564a87d611e0477462 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)
« no previous file with comments | « fpdfsdk/cpdfsdk_pageview.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698