summaryrefslogtreecommitdiff
path: root/core/fxcodec/lbmp/fx_bmp.h
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/lbmp/fx_bmp.h
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/lbmp/fx_bmp.h')
-rw-r--r--core/fxcodec/lbmp/fx_bmp.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/fxcodec/lbmp/fx_bmp.h b/core/fxcodec/lbmp/fx_bmp.h
index 72dbfa5b03..ca55885aef 100644
--- a/core/fxcodec/lbmp/fx_bmp.h
+++ b/core/fxcodec/lbmp/fx_bmp.h
@@ -35,7 +35,6 @@
#define BMP_BITFIELDS 3L
#define BMP_BIT_555 0
#define BMP_BIT_565 1
-#define BMP_MAX_ERROR_SIZE 256
// Limit width to (MAXINT32 - 31) / 32
#define BMP_MAX_WIDTH 67108863
#pragma pack(1)
@@ -73,14 +72,13 @@ class BMPDecompressor {
BMPDecompressor();
~BMPDecompressor();
- void Error(const char* err_msg);
+ void Error();
int32_t DecodeImage();
int32_t ReadHeader();
void SetInputBuffer(uint8_t* src_buf, uint32_t src_size);
uint32_t GetAvailInput(uint8_t** avail_buf);
jmp_buf jmpbuf;
- char* err_ptr;
void* context_ptr;
@@ -136,7 +134,6 @@ class CBmpContext : public CCodec_BmpModule::Context {
BMPDecompressor m_Bmp;
UnownedPtr<CCodec_BmpModule> const m_pModule;
UnownedPtr<CCodec_BmpModule::Delegate> const m_pDelegate;
- char m_szLastError[256];
};
uint16_t GetWord_LSBFirst(uint8_t* p);