From ac571105110c124f2fb74aa5a4211de2afadc830 Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Mon, 2 Oct 2017 20:19:26 +0300 Subject: Remove useless code. Change-Id: I521d6e83f392820c40f6be930ff3bf160b766b52 Reviewed-on: https://pdfium-review.googlesource.com/15150 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fpdfapi/parser/cpdf_syntax_parser.cpp | 9 --------- core/fpdfapi/parser/cpdf_syntax_parser.h | 3 --- 2 files changed, 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_SyntaxParser::GetObjectBodyInternal( return nullptr; } -std::unique_ptr 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_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 GetObjectBody( CPDF_IndirectObjectHolder* pObjList); - std::unique_ptr GetObjectBodyForStrict( - CPDF_IndirectObjectHolder* pObjList); - std::unique_ptr GetIndirectObject( CPDF_IndirectObjectHolder* pObjList, ParseType parse_type); -- cgit v1.2.3