summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_structtree.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-04-06 13:42:13 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-06 18:26:37 +0000
commitdeff61fe7368c2db41d31accb45291dd41bacd4f (patch)
tree07791b4fb48cd27c79bfce9c9c8d986b9623aefa /core/fpdfdoc/cpdf_structtree.h
parent7f389615a0fca78532482d6f4070d18c5d2f9f5d (diff)
downloadpdfium-deff61fe7368c2db41d31accb45291dd41bacd4f.tar.xz
Cleanup tagged code.
This Cl removes a bunch of unused tagged code. Some of this will need to come back in the future (like the attr code) but we can add it back with tests when needed. Bug: pdfium:672 Change-Id: I7aaed79963910b336f42ce665790408038c39ba4 Reviewed-on: https://pdfium-review.googlesource.com/3830 Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_structtree.h')
-rw-r--r--core/fpdfdoc/cpdf_structtree.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_structtree.h b/core/fpdfdoc/cpdf_structtree.h
index 20bf41e7ee..aa30f802db 100644
--- a/core/fpdfdoc/cpdf_structtree.h
+++ b/core/fpdfdoc/cpdf_structtree.h
@@ -28,20 +28,19 @@ class CPDF_StructTree {
int CountTopElements() const;
CPDF_StructElement* GetTopElement(int i) const;
+ const CPDF_Dictionary* GetRoleMap() const { return m_pRoleMap; }
+ const CPDF_Dictionary* GetPage() const { return m_pPage; }
+ const CPDF_Dictionary* GetTreeRoot() const { return m_pTreeRoot; }
+ private:
void LoadPageTree(const CPDF_Dictionary* pPageDict);
CFX_RetainPtr<CPDF_StructElement> AddPageNode(
CPDF_Dictionary* pElement,
std::map<CPDF_Dictionary*, CFX_RetainPtr<CPDF_StructElement>>* map,
- int nLevel = 0);
+ int nLevel);
bool AddTopLevelNode(CPDF_Dictionary* pDict,
const CFX_RetainPtr<CPDF_StructElement>& pElement);
- const CPDF_Dictionary* GetRoleMap() const { return m_pRoleMap; }
- const CPDF_Dictionary* GetPage() const { return m_pPage; }
- const CPDF_Dictionary* GetTreeRoot() const { return m_pTreeRoot; }
-
- private:
const CPDF_Dictionary* const m_pTreeRoot;
const CPDF_Dictionary* const m_pRoleMap;
const CPDF_Dictionary* m_pPage;