diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2018-06-27 23:33:23 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-27 23:33:23 +0000 |
commit | b8f24bb50582436c7fb261b5021f7af6813f3968 (patch) | |
tree | 7259062573d03335bb86e54df2a63841e396e662 /core | |
parent | 042737087ae74a840c1e006fe5cfcfcae4333c74 (diff) | |
download | pdfium-b8f24bb50582436c7fb261b5021f7af6813f3968.tar.xz |
Remove useless code.
No longer needed after commit 20eca1e3
Change-Id: Ica4f67d2a2df760ebf9fd507283791271ad407cd
Reviewed-on: https://pdfium-review.googlesource.com/36351
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfapi/parser/cpdf_data_avail.cpp | 2 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_document.h | 1 |
2 files changed, 0 insertions, 3 deletions
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<CPDF_Parser>(); - parser->SetPassword(password); auto document = pdfium::MakeUnique<CPDF_Document>(); 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; |