diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-10-02 20:19:26 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-02 18:07:21 +0000 |
commit | ac571105110c124f2fb74aa5a4211de2afadc830 (patch) | |
tree | 29d44762027a1d85c051149959f8d37ca01faf3e /core | |
parent | 1cfdb58521aa96f6c0cc39a8e8fa31f2ee6ad4a9 (diff) | |
download | pdfium-ac571105110c124f2fb74aa5a4211de2afadc830.tar.xz |
Remove useless code.
Change-Id: I521d6e83f392820c40f6be930ff3bf160b766b52
Reviewed-on: https://pdfium-review.googlesource.com/15150
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfapi/parser/cpdf_syntax_parser.cpp | 9 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_syntax_parser.h | 3 |
2 files changed, 0 insertions, 12 deletions
diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.cpp b/core/fpdfapi/parser/cpdf_syntax_parser.cpp index 58cc60b85d..0c483ac107 100644 --- a/core/fpdfapi/parser/cpdf_syntax_parser.cpp +++ b/core/fpdfapi/parser/cpdf_syntax_parser.cpp @@ -472,15 +472,6 @@ std::unique_ptr<CPDF_Object> CPDF_SyntaxParser::GetObjectBodyInternal( return nullptr; } -std::unique_ptr<CPDF_Object> CPDF_SyntaxParser::GetObjectBodyForStrict( - CPDF_IndirectObjectHolder* pObjList) { - const CPDF_ReadValidator::Session read_session(GetValidator().Get()); - auto result = GetObjectBodyInternal(pObjList, ParseType::kStrict); - if (GetValidator()->has_read_problems()) - return nullptr; - return result; -} - std::unique_ptr<CPDF_Object> CPDF_SyntaxParser::GetIndirectObject( CPDF_IndirectObjectHolder* pObjList, ParseType parse_type) { diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.h b/core/fpdfapi/parser/cpdf_syntax_parser.h index d025905858..d3442880bc 100644 --- a/core/fpdfapi/parser/cpdf_syntax_parser.h +++ b/core/fpdfapi/parser/cpdf_syntax_parser.h @@ -42,9 +42,6 @@ class CPDF_SyntaxParser { std::unique_ptr<CPDF_Object> GetObjectBody( CPDF_IndirectObjectHolder* pObjList); - std::unique_ptr<CPDF_Object> GetObjectBodyForStrict( - CPDF_IndirectObjectHolder* pObjList); - std::unique_ptr<CPDF_Object> GetIndirectObject( CPDF_IndirectObjectHolder* pObjList, ParseType parse_type); |