summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-02 09:10:06 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-02 13:32:00 +0000
commit59dfc62e56ec5dd88e5445e13467e0e1a3f1690f (patch)
tree9980509b79377dfb225ee32d4d3e98d27e14c639 /core/fxcodec/jbig2
parenta5c32a120ae918ecebab4042b3e52278f7a24b51 (diff)
downloadpdfium-59dfc62e56ec5dd88e5445e13467e0e1a3f1690f.tar.xz
Removing unused defines
Remove unused defines. Change-Id: Ibf10d8470f19cbf4528fe1342398a39ef15c1d12 Reviewed-on: https://pdfium-review.googlesource.com/15110 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2')
-rw-r--r--core/fxcodec/jbig2/JBig2_Context.h2
-rw-r--r--core/fxcodec/jbig2/JBig2_Define.h1
-rw-r--r--core/fxcodec/jbig2/JBig2_Segment.h3
3 files changed, 0 insertions, 6 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Context.h b/core/fxcodec/jbig2/JBig2_Context.h
index bed1079db9..314db9083a 100644
--- a/core/fxcodec/jbig2/JBig2_Context.h
+++ b/core/fxcodec/jbig2/JBig2_Context.h
@@ -33,8 +33,6 @@ using CJBig2_CachePair =
#define JBIG2_ERROR_FATAL -3
#define JBIG2_END_OF_PAGE 2
#define JBIG2_END_OF_FILE 3
-#define JBIG2_ERROR_FILE_FORMAT -4
-#define JBIG2_ERROR_STREAM_TYPE -5
#define JBIG2_ERROR_LIMIT -6
#define JBIG2_MIN_SEGMENT_SIZE 11
diff --git a/core/fxcodec/jbig2/JBig2_Define.h b/core/fxcodec/jbig2/JBig2_Define.h
index 2934de4e9b..6fc3434ac7 100644
--- a/core/fxcodec/jbig2/JBig2_Define.h
+++ b/core/fxcodec/jbig2/JBig2_Define.h
@@ -10,7 +10,6 @@
#include "core/fxcrt/fx_system.h"
#define JBIG2_memset memset
-#define JBIG2_memcmp memcmp
#define JBIG2_memcpy memcpy
#define JBIG2_OOB 1
diff --git a/core/fxcodec/jbig2/JBig2_Segment.h b/core/fxcodec/jbig2/JBig2_Segment.h
index 5dc57a37d4..914115b522 100644
--- a/core/fxcodec/jbig2/JBig2_Segment.h
+++ b/core/fxcodec/jbig2/JBig2_Segment.h
@@ -15,9 +15,6 @@
#include "core/fxcodec/jbig2/JBig2_PatternDict.h"
#include "core/fxcodec/jbig2/JBig2_SymbolDict.h"
-#define JBIG2_GET_INT32(buf) \
- (((buf)[0] << 24) | ((buf)[1] << 16) | ((buf)[2] << 8) | (buf)[3])
-#define JBIG2_GET_INT16(buf) (((buf)[0] << 8) | (buf)[1])
typedef enum {
JBIG2_SEGMENT_HEADER_UNPARSED,
JBIG2_SEGMENT_DATA_UNPARSED,