summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/ccodec_bmpmodule.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-27 15:31:20 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 20:01:56 +0000
commitc9de55bbfb8e55022476d972d183501cbf0216ad (patch)
tree603efc65683764c02c8e72fe909be8481f75da6f /core/fxcodec/codec/ccodec_bmpmodule.cpp
parent36a155d1f3a9d9f315655a20d583c13644ef1f3e (diff)
downloadpdfium-c9de55bbfb8e55022476d972d183501cbf0216ad.tar.xz
Remove error strings from BMP decoding path
These are error strings are set but never used for anything. BUG=pdfium:907 Change-Id: I08d9547009116f7386d15b4a965b9a99c7bf1997 Reviewed-on: https://pdfium-review.googlesource.com/15010 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_bmpmodule.cpp')
-rw-r--r--core/fxcodec/codec/ccodec_bmpmodule.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/fxcodec/codec/ccodec_bmpmodule.cpp b/core/fxcodec/codec/ccodec_bmpmodule.cpp
index a76cc3c6f7..b2fcca869b 100644
--- a/core/fxcodec/codec/ccodec_bmpmodule.cpp
+++ b/core/fxcodec/codec/ccodec_bmpmodule.cpp
@@ -16,7 +16,6 @@
CBmpContext::CBmpContext(CCodec_BmpModule* pModule,
CCodec_BmpModule::Delegate* pDelegate)
: m_pModule(pModule), m_pDelegate(pDelegate) {
- memset(m_szLastError, 0, sizeof(m_szLastError));
}
CBmpContext::~CBmpContext() {}
@@ -29,7 +28,6 @@ std::unique_ptr<CCodec_BmpModule::Context> CCodec_BmpModule::Start(
Delegate* pDelegate) {
auto p = pdfium::MakeUnique<CBmpContext>(this, pDelegate);
p->m_Bmp.context_ptr = p.get();
- p->m_Bmp.err_ptr = p->m_szLastError;
return p;
}