summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_parser.cpp
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2017-08-09 23:11:16 +0300
committerChromium commit bot <commit-bot@chromium.org>2017-08-09 20:34:34 +0000
commitb6db95b0d55869168ee13e2b8accb0d16dc7ad8b (patch)
tree12bb22f1031e6162c6096c8fc1d7d45a11037bda /core/fpdfapi/parser/cpdf_parser.cpp
parent00334675c18a0203f313cceb670c970a77280f49 (diff)
downloadpdfium-b6db95b0d55869168ee13e2b8accb0d16dc7ad8b.tar.xz
Remove useless code.
The CPDF_Parser::IsVersionUpdated is not used anymore. Change-Id: I896c42daca3c5bed7b9d700eaea6ced686ab5acb Reviewed-on: https://pdfium-review.googlesource.com/10490 Commit-Queue: Art Snake <art-snake@yandex-team.ru> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_parser.cpp')
-rw-r--r--core/fpdfapi/parser/cpdf_parser.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/fpdfapi/parser/cpdf_parser.cpp b/core/fpdfapi/parser/cpdf_parser.cpp
index d35f034e97..bf711bd972 100644
--- a/core/fpdfapi/parser/cpdf_parser.cpp
+++ b/core/fpdfapi/parser/cpdf_parser.cpp
@@ -71,7 +71,6 @@ CPDF_Parser::CPDF_Parser()
: m_pSyntax(pdfium::MakeUnique<CPDF_SyntaxParser>()),
m_bHasParsed(false),
m_bXRefStream(false),
- m_bVersionUpdated(false),
m_FileVersion(0),
m_pEncryptDict(nullptr),
m_TrailerPos(CPDF_Parser::kInvalidPos),
@@ -594,8 +593,6 @@ void CPDF_Parser::MergeCrossRefObjectsData(
for (const auto& obj : objects) {
m_ObjectInfo[obj.obj_num] = obj.info;
if (obj.info.type != ObjectType::kFree) {
- if (obj.info.gennum > 0)
- m_bVersionUpdated = true;
if (obj.info.type == ObjectType::kNotCompressed &&
obj.info.pos < m_pSyntax->m_FileLen) {
m_SortedOffset.insert(obj.info.pos);
@@ -814,11 +811,8 @@ bool CPDF_Parser::RebuildCrossRef() {
if (!m_ObjectInfo.empty() && IsValidObjectNumber(objnum) &&
m_ObjectInfo[objnum].pos) {
if (pObject) {
- uint32_t oldgen = GetObjectGenNum(objnum);
m_ObjectInfo[objnum].pos = obj_pos;
m_ObjectInfo[objnum].gennum = gennum;
- if (oldgen != gennum)
- m_bVersionUpdated = true;
}
} else {
m_ObjectInfo[objnum].pos = obj_pos;