summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cfdf_document.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-19 19:00:43 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-19 19:00:43 +0000
commit58c2c144c5ac6a7397573d2f25d1ba9c79bc4f15 (patch)
tree438cd4c32e367e1433d5e5f01896984d564f67c2 /core/fpdfapi/parser/cfdf_document.cpp
parent9ccf08746e57a03fd9afc187cb3e23404cdc88bb (diff)
downloadpdfium-58c2c144c5ac6a7397573d2f25d1ba9c79bc4f15.tar.xz
Remove some dead code.
Change-Id: I8edb14c024860c66b5e6c014136393e71e38387d Reviewed-on: https://pdfium-review.googlesource.com/21570 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cfdf_document.cpp')
-rw-r--r--core/fpdfapi/parser/cfdf_document.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/core/fpdfapi/parser/cfdf_document.cpp b/core/fpdfapi/parser/cfdf_document.cpp
index 55493b257d..f6af4546d7 100644
--- a/core/fpdfapi/parser/cfdf_document.cpp
+++ b/core/fpdfapi/parser/cfdf_document.cpp
@@ -29,20 +29,11 @@ std::unique_ptr<CFDF_Document> CFDF_Document::CreateNewDoc() {
return pDoc;
}
-std::unique_ptr<CFDF_Document> CFDF_Document::ParseFile(
- const RetainPtr<IFX_SeekableReadStream>& pFile) {
- if (!pFile)
- return nullptr;
-
- auto pDoc = pdfium::MakeUnique<CFDF_Document>();
- pDoc->ParseStream(pFile);
- return pDoc->m_pRootDict ? std::move(pDoc) : nullptr;
-}
-
std::unique_ptr<CFDF_Document> CFDF_Document::ParseMemory(uint8_t* pData,
uint32_t size) {
- return CFDF_Document::ParseFile(
- pdfium::MakeRetain<CFX_MemoryStream>(pData, size, false));
+ auto pDoc = pdfium::MakeUnique<CFDF_Document>();
+ pDoc->ParseStream(pdfium::MakeRetain<CFX_MemoryStream>(pData, size, false));
+ return pDoc->m_pRootDict ? std::move(pDoc) : nullptr;
}
void CFDF_Document::ParseStream(