summaryrefslogtreecommitdiff
path: root/core/fpdfapi/edit
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-01 10:55:08 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-02 18:35:10 +0000
commit61899373fcf97ccbe525b001130bc71d61839498 (patch)
treed8cbaa3179e5981f56669a78bcf425cbfd652278 /core/fpdfapi/edit
parentaea80dcc0abc0c310316fa502f91a359bc684758 (diff)
downloadpdfium-61899373fcf97ccbe525b001130bc71d61839498.tar.xz
Remove unused CPDF_FlateEncoder ctor.
Callers removed in commit 4b78b18. Change-Id: I6eec6ba18712040180b12d56b59c6a8379de4379 Reviewed-on: https://pdfium-review.googlesource.com/9750 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit')
-rw-r--r--core/fpdfapi/edit/cpdf_flateencoder.cpp21
-rw-r--r--core/fpdfapi/edit/cpdf_flateencoder.h4
2 files changed, 0 insertions, 25 deletions
diff --git a/core/fpdfapi/edit/cpdf_flateencoder.cpp b/core/fpdfapi/edit/cpdf_flateencoder.cpp
index 55d436f573..f8e2b5ad55 100644
--- a/core/fpdfapi/edit/cpdf_flateencoder.cpp
+++ b/core/fpdfapi/edit/cpdf_flateencoder.cpp
@@ -45,27 +45,6 @@ CPDF_FlateEncoder::CPDF_FlateEncoder(CPDF_Stream* pStream, bool bFlateEncode)
m_pDict->RemoveFor("DecodeParms");
}
-CPDF_FlateEncoder::CPDF_FlateEncoder(const uint8_t* pBuffer,
- uint32_t size,
- bool bFlateEncode,
- bool bXRefStream)
- : m_dwSize(0) {
- if (!bFlateEncode) {
- m_pData = const_cast<uint8_t*>(pBuffer);
- m_dwSize = size;
- return;
- }
-
- uint8_t* buffer = nullptr;
- // TODO(thestig): Move to Init() and check return value.
- if (bXRefStream)
- ::PngEncode(pBuffer, size, &buffer, &m_dwSize);
- else
- ::FlateEncode(pBuffer, size, &buffer, &m_dwSize);
-
- m_pData = std::unique_ptr<uint8_t, FxFreeDeleter>(buffer);
-}
-
CPDF_FlateEncoder::~CPDF_FlateEncoder() {}
void CPDF_FlateEncoder::CloneDict() {
diff --git a/core/fpdfapi/edit/cpdf_flateencoder.h b/core/fpdfapi/edit/cpdf_flateencoder.h
index ac850e2802..ee946582ef 100644
--- a/core/fpdfapi/edit/cpdf_flateencoder.h
+++ b/core/fpdfapi/edit/cpdf_flateencoder.h
@@ -18,10 +18,6 @@ class CPDF_Stream;
class CPDF_FlateEncoder {
public:
CPDF_FlateEncoder(CPDF_Stream* pStream, bool bFlateEncode);
- CPDF_FlateEncoder(const uint8_t* pBuffer,
- uint32_t size,
- bool bFlateEncode,
- bool bXRefStream);
~CPDF_FlateEncoder();
void CloneDict();