commit 12c1baf75784c6ecc7590066cfdead8fbb712725 parent a67ccfeeb7e37e3f8647e89223cf7df36e288335 Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 4 Sep 2012 17:51:56 +0000 -removing dead code from common lib and API Diffstat:
| M | src/common/Makefile.am | | | 13 | ++++--------- |
| M | src/common/le_architecture.h | | | 18 | ------------------ |
| R | src/common/convert_numeric.c -> src/plugins/old/convert_numeric.c | | | 0 | |
| R | src/common/convert_numeric.h -> src/plugins/old/convert_numeric.h | | | 0 | |
| R | src/common/pack.c -> src/plugins/old/pack.c | | | 0 | |
| R | src/common/pack.h -> src/plugins/old/pack.h | | | 0 |
6 files changed, 4 insertions(+), 27 deletions(-)
diff --git a/src/common/Makefile.am b/src/common/Makefile.am @@ -7,18 +7,13 @@ lib_LTLIBRARIES = \ libextractor_common.la libextractor_common_la_LDFLAGS = \ - $(LE_LIB_LDFLAGS) + $(LE_LIB_LDFLAGS) \ + -version-info 1:0:0 libextractor_common_la_LIBADD = \ $(LTLIBICONV) -lz libextractor_common_la_SOURCES = \ le_architecture.h \ - unzip.c \ - unzip.h \ - pack.c \ - pack.h \ - convert.c \ - convert.h \ - convert_numeric.c \ - convert_numeric.h + unzip.c unzip.h \ + convert.c convert.h diff --git a/src/common/le_architecture.h b/src/common/le_architecture.h @@ -101,24 +101,6 @@ */ #define LE_PACKED __attribute__((packed)) -/** - * gcc-ism to get gcc bitfield layout when compiling with -mms-bitfields - */ -#ifdef __MINGW32__ -#define LE_GCC_STRUCT_LAYOUT __attribute__((gcc_struct)) -#else -#define LE_GCC_STRUCT_LAYOUT -#endif - -/** - * gcc-ism to document unused arguments - */ -#define LE_UNUSED __attribute__((unused)) - -/** - * gcc-ism to document functions that don't return - */ -#define LE_NORETURN __attribute__((noreturn)) #if MINGW #if __GNUC__ > 3 diff --git a/src/common/convert_numeric.c b/src/plugins/old/convert_numeric.c diff --git a/src/common/convert_numeric.h b/src/plugins/old/convert_numeric.h diff --git a/src/common/pack.c b/src/plugins/old/pack.c diff --git a/src/common/pack.h b/src/plugins/old/pack.h