summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2018-07-12 10:07:59 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-12 10:07:59 +0000
commit5ff09fb5ee9079ad7983c873525b87065eab1deb (patch)
tree6dc6fde4c09a04b5dc240d60cf7dde64049a4bd6 /core/fpdfapi
parent859d06f4ab89f4b6bcf4428585271c8c1d18907c (diff)
downloadpdfium-5ff09fb5ee9079ad7983c873525b87065eab1deb.tar.xz
Remove CPDF_HintTables::GetItemLength()
Commit {Insert later} removed the last caller to this method. Change-Id: I1689b33486396cc3a41139f984f819b39ab02b2a Reviewed-on: https://pdfium-review.googlesource.com/35130 Commit-Queue: Art Snake <art-snake@yandex-team.ru> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/parser/cpdf_hint_tables.cpp10
-rw-r--r--core/fpdfapi/parser/cpdf_hint_tables.h3
2 files changed, 0 insertions, 13 deletions
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.cpp b/core/fpdfapi/parser/cpdf_hint_tables.cpp
index f4f87d59e6..71a6d3688e 100644
--- a/core/fpdfapi/parser/cpdf_hint_tables.cpp
+++ b/core/fpdfapi/parser/cpdf_hint_tables.cpp
@@ -51,16 +51,6 @@ CPDF_HintTables::CPDF_HintTables(CPDF_ReadValidator* pValidator,
CPDF_HintTables::~CPDF_HintTables() {}
-uint32_t CPDF_HintTables::GetItemLength(
- uint32_t index,
- const std::vector<FX_FILESIZE>& szArray) const {
- if (szArray.size() < 2 || index > szArray.size() - 2 ||
- szArray[index] > szArray[index + 1]) {
- return 0;
- }
- return szArray[index + 1] - szArray[index];
-}
-
bool CPDF_HintTables::ReadPageHintTable(CFX_BitStream* hStream) {
const uint32_t nPages = m_pLinearized->GetPageCount();
if (nPages < 1 || nPages >= CPDF_Document::kPageMaxNum)
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.h b/core/fpdfapi/parser/cpdf_hint_tables.h
index 861f231547..a161dc68f0 100644
--- a/core/fpdfapi/parser/cpdf_hint_tables.h
+++ b/core/fpdfapi/parser/cpdf_hint_tables.h
@@ -88,9 +88,6 @@ class CPDF_HintTables {
bool ReadSharedObjHintTable(CFX_BitStream* hStream, uint32_t offset);
private:
- uint32_t GetItemLength(uint32_t index,
- const std::vector<FX_FILESIZE>& szArray) const;
-
FX_FILESIZE HintsOffsetToFileOffset(uint32_t hints_offset) const;
// Owned by |m_pDataAvail|.