summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-26 10:18:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-27 09:36:53 +0100
commitaa753f01ba4631614bb88ee7d3a3e6b222208b3e (patch)
treec8b168e8e0619c387d30f206848ec30ca7238a00 /hwpfilter
parent2ea2860ba56231d989c5e1b8f87392921bc2a8db (diff)
-Wunused-macros
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/fontmap.cxx1
-rw-r--r--hwpfilter/source/hcode.cxx10
-rw-r--r--hwpfilter/source/hgzip.cxx7
-rw-r--r--hwpfilter/source/hwpfile.cxx6
4 files changed, 0 insertions, 24 deletions
diff --git a/hwpfilter/source/fontmap.cxx b/hwpfilter/source/fontmap.cxx
index 6865f45929ee..9ac5f9c4d125 100644
--- a/hwpfilter/source/fontmap.cxx
+++ b/hwpfilter/source/fontmap.cxx
@@ -121,7 +121,6 @@ const struct FontEntry FontMapTab[] =
{"\xbd\xc5\xb8\xed \xb1\xc3\xbc\xad",3, 0.97}
};
-#define FONTCOUNT 4
#ifndef WIN32
#if defined(LINUX)
const char* RepFontTab[] =
diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx
index 1187e42ef4c5..396008cbe82e 100644
--- a/hwpfilter/source/hcode.cxx
+++ b/hwpfilter/source/hcode.cxx
@@ -43,24 +43,15 @@ static hchar jaso2ks(hchar hh);
// ccvHH2ASC code convert HWP20 to ASC(KSSM)
-#define HCA_HALFCH 0x3000
#define HCA_KSS 0x3400
#define HCA_TG 0x37C0
-#define none 0x3401 /* 2.0 null code - space */
-#define noneha 0x00A0
#define noneks 0xA1A1
-#define none1x 0x2402
#define UNI_HANGUL_FIRST 0xac00
-#define UNI_COMP_JAMO_FIRST 0x3131
-#define NUM_CHOSEONG 19
#define NUM_JOONGSEONG 21
#define NUM_JONGSEONG 28
-
-#define IDX_INVALID 0xFF
-
/**
* kssm code table matching with ks index
*/
@@ -547,7 +538,6 @@ static hchar cdkssm2ks_han(hchar kssm)
#define IsHangul(c) ((c) & 0x8000)
#define IsHanja(c) (((c) & 0x4000)==0x4000)
-#define IsJapan(c) (((c) > 0x1f00 && (c) < 0x1fb7))
static const hchar jaso_hh_code[] =
{
diff --git a/hwpfilter/source/hgzip.cxx b/hwpfilter/source/hgzip.cxx
index 6e06f3487906..e1cf5986d8da 100644
--- a/hwpfilter/source/hgzip.cxx
+++ b/hwpfilter/source/hgzip.cxx
@@ -35,13 +35,6 @@
#define ALLOC(size) malloc(size)
#define TRYFREE(p) {if (p) free(p);}
-#define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */
-#define HEAD_CRC 0x02 /* bit 1 set: header CRC present */
-#define EXTRA_FIELD 0x04 /* bit 2 set: extra field present */
-#define ORIG_NAME 0x08 /* bit 3 set: original file name present */
-#define COMMENT 0x10 /* bit 4 set: file comment present */
-#define RESERVED 0xE0 /* bits 5..7: reserved */
-
local int get_byte(gz_stream * s);
local int destroy(gz_stream * s);
local uLong getLong(gz_stream * s);
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx
index 8cc1f485a07f..0082693f7b16 100644
--- a/hwpfilter/source/hwpfile.cxx
+++ b/hwpfilter/source/hwpfile.cxx
@@ -36,12 +36,6 @@
#include <osl/diagnose.h>
-#define HWPHeadLen 128
-#define HWPSummaryLen 1008
-
-#define FILESTG_SIGNATURE 0xF8995567
-#define FILESTG_SIGNATURE_NORMAL 0xF8995568
-
HWPFile *HWPFile::cur_doc = 0;
static int ccount = 0;
static int pcount = 0;