summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authortonikitoo <tonikitoo@igalia.com>2016-08-25 07:42:15 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-25 07:42:15 -0700
commite5cbb33e2d6db82c2904dae689eb38b7a4587297 (patch)
treef51bfcc5bbaf90e3f7f8512366e64e329d5ca412 /fpdfsdk
parentdbb6266b8b87746fc3241ad6802289da6fb10114 (diff)
downloadpdfium-e5cbb33e2d6db82c2904dae689eb38b7a4587297.tar.xz
Drop CPDFSDK_PageView::Annot_HasAppearance
Method is unused and misplaced (it should be in CPF_Annot if actually needed). Review-Url: https://codereview.chromium.org/2278613003
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fsdk_mgr.cpp7
-rw-r--r--fpdfsdk/include/fsdk_mgr.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/fpdfsdk/fsdk_mgr.cpp b/fpdfsdk/fsdk_mgr.cpp
index 932bcece9d..24efd4077d 100644
--- a/fpdfsdk/fsdk_mgr.cpp
+++ b/fpdfsdk/fsdk_mgr.cpp
@@ -640,13 +640,6 @@ void CPDFSDK_PageView::KillFocusAnnotIfNeeded() {
}
}
-FX_BOOL CPDFSDK_PageView::Annot_HasAppearance(CPDF_Annot* pAnnot) {
- CPDF_Dictionary* pAnnotDic = pAnnot->GetAnnotDict();
- if (pAnnotDic)
- return pAnnotDic->KeyExist("AS");
- return FALSE;
-}
-
CPDFSDK_Annot* CPDFSDK_PageView::AddAnnot(CPDF_Annot* pPDFAnnot) {
CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv();
ASSERT(pEnv);
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h
index a93f9da64a..a0adf04823 100644
--- a/fpdfsdk/include/fsdk_mgr.h
+++ b/fpdfsdk/include/fsdk_mgr.h
@@ -555,7 +555,6 @@ class CPDFSDK_PageView final : public CPDF_Page::View {
return m_pSDKDoc->KillFocusAnnot(nFlag);
}
void KillFocusAnnotIfNeeded();
- FX_BOOL Annot_HasAppearance(CPDF_Annot* pAnnot);
CPDFSDK_Annot* AddAnnot(CPDF_Dictionary* pDict);
CPDFSDK_Annot* AddAnnot(const FX_CHAR* lpSubType, CPDF_Dictionary* pDict);