summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_gifmodule.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_gifmodule.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_gifmodule.cpp')
-rw-r--r--core/fxcodec/codec/ccodec_gifmodule.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/fxcodec/codec/ccodec_gifmodule.cpp b/core/fxcodec/codec/ccodec_gifmodule.cpp
index d6ab10d9c9..dc2c0c83a4 100644
--- a/core/fxcodec/codec/ccodec_gifmodule.cpp
+++ b/core/fxcodec/codec/ccodec_gifmodule.cpp
@@ -63,16 +63,6 @@ CFX_GifDecodeStatus CCodec_GifModule::LoadFrame(Context* pContext,
pAttribute->m_nGifLeft = context->images_[frame_num]->image_info.left;
pAttribute->m_nGifTop = context->images_[frame_num]->image_info.top;
pAttribute->m_fAspectRatio = context->pixel_aspect_;
- const uint8_t* buf =
- reinterpret_cast<const uint8_t*>(context->cmt_data_.GetBuffer(0));
- uint32_t len = context->cmt_data_.GetLength();
- if (len > 21) {
- uint8_t size = *buf++;
- if (size != 0)
- pAttribute->m_strAuthor = ByteString(buf, size);
- else
- pAttribute->m_strAuthor.clear();
- }
return CFX_GifDecodeStatus::Success;
}