diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-06-03 16:19:04 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-06-03 16:19:04 -0700 |
commit | 76510e4127dc938d121ac5026000f3b0d84a2d46 (patch) | |
tree | e25067f6ea97e75d27bfa37bdc4968be0fbc1b19 /core/src/fpdfapi/fpdf_parser | |
parent | c0fe46b4c71023b7ec2a1f466b6609c073aae368 (diff) | |
download | pdfium-76510e4127dc938d121ac5026000f3b0d84a2d46.tar.xz |
Merge to XFA: Kill unused IPDF_ classes.
Original Review URL: https://codereview.chromium.org/1168503003
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1153033009
Diffstat (limited to 'core/src/fpdfapi/fpdf_parser')
-rw-r--r-- | core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp index fb43c64a1a..b11c7eeb44 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp @@ -297,39 +297,6 @@ int CPDF_Document::_GetPageCount() const } return _CountPages(pPages, 0); } -static FX_BOOL _EnumPages(CPDF_Dictionary* pPages, IPDF_EnumPageHandler* pHandler) -{ - CPDF_Array* pKidList = pPages->GetArray(FX_BSTRC("Kids")); - if (pKidList == NULL) { - return pHandler->EnumPage(pPages); - } - for (FX_DWORD i = 0; i < pKidList->GetCount(); i ++) { - CPDF_Dictionary* pKid = pKidList->GetDict(i); - if (pKid == NULL) { - continue; - } - if (!pKid->KeyExist(FX_BSTRC("Kids"))) { - if (!pHandler->EnumPage(pKid)) { - return FALSE; - } - } else { - return _EnumPages(pKid, pHandler); - } - } - return TRUE; -} -void CPDF_Document::EnumPages(IPDF_EnumPageHandler* pHandler) -{ - CPDF_Dictionary* pRoot = GetRoot(); - if (pRoot == NULL) { - return; - } - CPDF_Dictionary* pPages = pRoot->GetDict(FX_BSTRC("Pages")); - if (pPages == NULL) { - return; - } - _EnumPages(pPages, pHandler); -} FX_BOOL CPDF_Document::IsContentUsedElsewhere(FX_DWORD objnum, CPDF_Dictionary* pThisPageDict) { for (int i = 0; i < m_PageList.GetSize(); i ++) { |