summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-25 18:37:31 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-25 18:37:31 +0000
commit2929d135d076fb6927a02ff94935d5efc45e7257 (patch)
treec98eb3e42ffee4159eee63c512202f5b985b0b87 /core/fpdfapi
parent00721f053a1f0b47370d86a60356c4560e92ddf2 (diff)
downloadpdfium-2929d135d076fb6927a02ff94935d5efc45e7257.tar.xz
Remove unused PNGEncode() code.
BUG=pdfium:41 Change-Id: I98070a5a6c88a0769f2b571eae4fe62092f7dfcd Reviewed-on: https://pdfium-review.googlesource.com/31232 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/parser/fpdf_parser_decode.cpp9
-rw-r--r--core/fpdfapi/parser/fpdf_parser_decode.h8
2 files changed, 0 insertions, 17 deletions
diff --git a/core/fpdfapi/parser/fpdf_parser_decode.cpp b/core/fpdfapi/parser/fpdf_parser_decode.cpp
index edfbaf4331..e734183b2b 100644
--- a/core/fpdfapi/parser/fpdf_parser_decode.cpp
+++ b/core/fpdfapi/parser/fpdf_parser_decode.cpp
@@ -559,15 +559,6 @@ bool FlateEncode(const uint8_t* src_buf,
dest_size);
}
-bool PngEncode(const uint8_t* src_buf,
- uint32_t src_size,
- uint8_t** dest_buf,
- uint32_t* dest_size) {
- CCodec_ModuleMgr* pEncoders = CPDF_ModuleMgr::Get()->GetCodecModule();
- return pEncoders->GetFlateModule()->PngEncode(src_buf, src_size, dest_buf,
- dest_size);
-}
-
uint32_t FlateDecode(const uint8_t* src_buf,
uint32_t src_size,
uint8_t** dest_buf,
diff --git a/core/fpdfapi/parser/fpdf_parser_decode.h b/core/fpdfapi/parser/fpdf_parser_decode.h
index d60e551e80..825d431019 100644
--- a/core/fpdfapi/parser/fpdf_parser_decode.h
+++ b/core/fpdfapi/parser/fpdf_parser_decode.h
@@ -28,14 +28,6 @@ bool FlateEncode(const uint8_t* src_buf,
uint8_t** dest_buf,
uint32_t* dest_size);
-// This used to have more parameters like the predictor and bpc, but there was
-// only one caller, so the interface has been simplified, the values are hard
-// coded, and dead code has been removed.
-bool PngEncode(const uint8_t* src_buf,
- uint32_t src_size,
- uint8_t** dest_buf,
- uint32_t* dest_size);
-
uint32_t FlateDecode(const uint8_t* src_buf,
uint32_t src_size,
uint8_t** dest_buf,