summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_pngmodule.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-11 23:31:29 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-11 23:31:29 +0000
commit87b67f842fe53c3d5db553b6c1965f4588fecbfc (patch)
tree4c4d4d8de67b98f1c4ca7c26bdaa6b31b98694b1 /core/fxcodec/codec/ccodec_pngmodule.cpp
parentb92ec18fdccd196035e02f3232c0b730637ac815 (diff)
downloadpdfium-87b67f842fe53c3d5db553b6c1965f4588fecbfc.tar.xz
Remove CFX_DIBAttribute::m_strAuthor
It is set in a couple of places, but the value is never used for any purpose. Change-Id: I6fc0839bc14b21ee8217fcb3eadf6c252ad67aa7 Reviewed-on: https://pdfium-review.googlesource.com/30330 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_pngmodule.cpp')
-rw-r--r--core/fxcodec/codec/ccodec_pngmodule.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/fxcodec/codec/ccodec_pngmodule.cpp b/core/fxcodec/codec/ccodec_pngmodule.cpp
index db5886aa29..7aedf2ee7f 100644
--- a/core/fxcodec/codec/ccodec_pngmodule.cpp
+++ b/core/fxcodec/codec/ccodec_pngmodule.cpp
@@ -75,26 +75,9 @@ static void _png_load_bmp_attribute(png_structp png_ptr,
&icc_proflen);
#endif
#if defined(PNG_TEXT_SUPPORTED)
- int i;
- size_t len;
- const char* buf;
int num_text;
png_textp text = nullptr;
png_get_text(png_ptr, info_ptr, &text, &num_text);
- for (i = 0; i < num_text; i++) {
- len = strlen(text[i].key);
- buf = "Time";
- if (memcmp(buf, text[i].key, std::min(len, strlen(buf)))) {
- buf = "Author";
- if (!memcmp(buf, text[i].key, std::min(len, strlen(buf)))) {
- pAttribute->m_strAuthor =
- text[i].text_length > 0
- ? ByteString(reinterpret_cast<uint8_t*>(text[i].text),
- static_cast<size_t>(text[i].text_length))
- : ByteString();
- }
- }
- }
#endif
}
}