From 41c7a97a1b303e43652f40f1b96ab7751783d8ed Mon Sep 17 00:00:00 2001 From: Zhiwei Lin Date: Thu, 3 Mar 2016 11:13:39 +0800 Subject: Remove unnecessary code BUG=pdfium:421 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1758643002 . --- fpdfsdk/src/fsdk_annothandler.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/src/fsdk_annothandler.cpp b/fpdfsdk/src/fsdk_annothandler.cpp index 27e5e2352a..5c77b3998b 100644 --- a/fpdfsdk/src/fsdk_annothandler.cpp +++ b/fpdfsdk/src/fsdk_annothandler.cpp @@ -85,8 +85,6 @@ CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(IXFA_Widget* pAnnot, #endif // PDF_ENABLE_XFA void CPDFSDK_AnnotHandlerMgr::ReleaseAnnot(CPDFSDK_Annot* pAnnot) { - pAnnot->GetPDFPage(); - if (IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot)) { pAnnotHandler->OnRelease(pAnnot); pAnnotHandler->ReleaseAnnot(pAnnot); -- cgit v1.2.3