From a0638ff0c7445925e873b39dbe584fbaf3cc87e5 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 31 Dec 2012 17:20:12 -0600 Subject: [PATCH] Remove unneeded stuff --- fc-cat/fc-cat.c | 10 ++++------ fc-lang/fc-lang.c | 11 ----------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c index 72912b7..9a2abb3 100644 --- a/fc-cat/fc-cat.c +++ b/fc-cat/fc-cat.c @@ -67,17 +67,15 @@ extern int optind, opterr, optopt; #endif /* - * POSIX has broken stdio so that getc must do thread-safe locking, + * POSIX has broken stdio so that putc must do thread-safe locking, * this is a serious performance problem for applications doing large - * amounts of IO with getc (as is done here). If available, use - * the getc_unlocked varient instead. + * amounts of IO with putc (as is done here). If available, use + * the putc_unlocked varient instead. */ -#if defined(getc_unlocked) || defined(_IO_getc_unlocked) -#define GETC(f) getc_unlocked(f) +#if defined(putc_unlocked) || defined(_IO_putc_unlocked) #define PUTC(c,f) putc_unlocked(c,f) #else -#define GETC(f) getc(f) #define PUTC(c,f) putc(c,f) #endif diff --git a/fc-lang/fc-lang.c b/fc-lang/fc-lang.c index 93200c4..83b13e1 100644 --- a/fc-lang/fc-lang.c +++ b/fc-lang/fc-lang.c @@ -37,16 +37,6 @@ * functions are also needed in slightly modified form */ -void -FcMemAlloc (int kind, int size) -{ -} - -void -FcMemFree (int kind, int size) -{ -} - FcPrivate void FcCacheObjectReference (void *object) { @@ -260,7 +250,6 @@ static int compare (const void *a, const void *b) #define MAX_LANG_SET_MAP ((MAX_LANG + 31) / 32) #define BitSet(map, i) ((map)[(entries[i].id)>>5] |= ((FcChar32) 1 << ((entries[i].id) & 0x1f))) -#define BitGet(map, i) ((map)[(entries[i].id)>>5] >> ((entries[i].id) & 0x1f)) & 1) int main (int argc, char **argv)