summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_dest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_dest.cpp')
-rw-r--r--core/fpdfdoc/cpdf_dest.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/core/fpdfdoc/cpdf_dest.cpp b/core/fpdfdoc/cpdf_dest.cpp
index 58d0ac26b8..8dd58b185a 100644
--- a/core/fpdfdoc/cpdf_dest.cpp
+++ b/core/fpdfdoc/cpdf_dest.cpp
@@ -38,24 +38,6 @@ CPDF_Dest::CPDF_Dest(const CPDF_Array* pObj) : m_pObj(pObj) {}
CPDF_Dest::~CPDF_Dest() {}
-int CPDF_Dest::GetPageIndexDeprecated(CPDF_Document* pDoc) const {
- const CPDF_Array* pArray = ToArray(m_pObj.Get());
- if (!pArray)
- return 0;
-
- const CPDF_Object* pPage = pArray->GetDirectObjectAt(0);
- if (!pPage)
- return 0;
-
- if (pPage->IsNumber())
- return pPage->GetInteger();
-
- if (!pPage->IsDictionary())
- return 0;
-
- return pDoc->GetPageIndex(pPage->GetObjNum());
-}
-
int CPDF_Dest::GetDestPageIndex(CPDF_Document* pDoc) const {
const CPDF_Array* pArray = ToArray(m_pObj.Get());
if (!pArray)