summaryrefslogtreecommitdiff
path: root/core/fpdfapi/edit/cpdf_creator.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-06-08 20:27:14 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-08 20:27:14 +0000
commite88da630ef7d61dfca86f76d088dcb088940e1f8 (patch)
treec16d38d0bc9e2674eaa7bf56bd0c9be8504a18df /core/fpdfapi/edit/cpdf_creator.cpp
parent280862f53a182928c5a9702784bb25f60a6eff08 (diff)
downloadpdfium-e88da630ef7d61dfca86f76d088dcb088940e1f8.tar.xz
Remove unused methods in CPDF_Creator, mark others as private.
Also remove the member variable m_dwEncryptObjNum which is never read. Change-Id: Ieb674d6d9783ef298ba3ece1544437b15ad0afe2 Reviewed-on: https://pdfium-review.googlesource.com/34694 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_creator.cpp')
-rw-r--r--core/fpdfapi/edit/cpdf_creator.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/fpdfapi/edit/cpdf_creator.cpp b/core/fpdfapi/edit/cpdf_creator.cpp
index 1935c7362f..5c6da1d4fa 100644
--- a/core/fpdfapi/edit/cpdf_creator.cpp
+++ b/core/fpdfapi/edit/cpdf_creator.cpp
@@ -146,7 +146,6 @@ CPDF_Creator::CPDF_Creator(CPDF_Document* pDoc,
m_pParser(pDoc->GetParser()),
m_bSecurityChanged(false),
m_pEncryptDict(m_pParser ? m_pParser->GetEncryptDict() : nullptr),
- m_dwEncryptObjNum(0),
m_pSecurityHandler(m_pParser ? m_pParser->GetSecurityHandler() : nullptr),
m_dwLastObjNum(m_pDocument->GetLastObjNum()),
m_Archive(pdfium::MakeUnique<CFX_FileBufferArchive>(archive)),
@@ -462,7 +461,6 @@ int32_t CPDF_Creator::WriteDoc_Stage2() {
return -1;
m_ObjectOffsets[m_dwLastObjNum] = saveOffset;
- m_dwEncryptObjNum = m_dwLastObjNum;
if (IsIncremental())
m_NewObjNumArray.push_back(m_dwLastObjNum);
}