From b8f24bb50582436c7fb261b5021f7af6813f3968 Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Wed, 27 Jun 2018 23:33:23 +0000 Subject: Remove useless code. No longer needed after commit 20eca1e3 Change-Id: Ica4f67d2a2df760ebf9fd507283791271ad407cd Reviewed-on: https://pdfium-review.googlesource.com/36351 Commit-Queue: Art Snake Reviewed-by: Lei Zhang --- core/fpdfapi/parser/cpdf_data_avail.cpp | 2 -- core/fpdfapi/parser/cpdf_document.h | 1 - 2 files changed, 3 deletions(-) (limited to 'core/fpdfapi') diff --git a/core/fpdfapi/parser/cpdf_data_avail.cpp b/core/fpdfapi/parser/cpdf_data_avail.cpp index 3b39e3f54b..95db3d81c0 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.cpp +++ b/core/fpdfapi/parser/cpdf_data_avail.cpp @@ -1009,8 +1009,6 @@ CPDF_DataAvail::ParseDocument(const char* password) { // We already returned parsed document. return std::make_pair(CPDF_Parser::HANDLER_ERROR, nullptr); } - auto parser = pdfium::MakeUnique(); - parser->SetPassword(password); auto document = pdfium::MakeUnique(); CPDF_ReadValidator::Session read_session(GetValidator().Get()); diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h index 328f09b6ef..401f37d0cf 100644 --- a/core/fpdfapi/parser/cpdf_document.h +++ b/core/fpdfapi/parser/cpdf_document.h @@ -29,7 +29,6 @@ class CPDF_Font; class CPDF_FontEncoding; class CPDF_IccProfile; class CPDF_LinearizedHeader; -class CPDF_Parser; class CPDF_Pattern; class CPDF_ReadValidator; class CPDF_StreamAcc; -- cgit v1.2.3