summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/fpdf_parser_decode.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-10 22:38:53 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-10 22:38:53 +0000
commit8ba9749e2f39287137a96ec5ceff2ac694566f48 (patch)
tree7575917a1b829a95b91c47be2520d7a1ea77e030 /core/fpdfapi/parser/fpdf_parser_decode.h
parentc51e0a0f9b2fbaa9f2eb911ab71f0d76d0215a94 (diff)
downloadpdfium-8ba9749e2f39287137a96ec5ceff2ac694566f48.tar.xz
Remove unused form of PDF_EncodeText().
Perform indexing via WideString::operator[] which will at least assert bounds, if not enforce them. Change-Id: I7b03cfd718c4acd642af910c2ca06f86d178e5fd Reviewed-on: https://pdfium-review.googlesource.com/39873 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/fpdf_parser_decode.h')
-rw-r--r--core/fpdfapi/parser/fpdf_parser_decode.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/fpdf_parser_decode.h b/core/fpdfapi/parser/fpdf_parser_decode.h
index 328fd474c6..652299992a 100644
--- a/core/fpdfapi/parser/fpdf_parser_decode.h
+++ b/core/fpdfapi/parser/fpdf_parser_decode.h
@@ -21,7 +21,6 @@ extern const uint16_t PDFDocEncoding[256];
ByteString PDF_EncodeString(const ByteString& src, bool bHex);
WideString PDF_DecodeText(const uint8_t* pData, uint32_t size);
WideString PDF_DecodeText(const ByteString& bstr);
-ByteString PDF_EncodeText(const wchar_t* pString, int len);
ByteString PDF_EncodeText(const WideString& str);
bool FlateEncode(const uint8_t* src_buf,