Remove unneeded stuff

This commit is contained in:
Behdad Esfahbod 2012-12-31 17:20:12 -06:00
parent a603be89cd
commit a0638ff0c7
2 changed files with 4 additions and 17 deletions

View File

@ -67,17 +67,15 @@ extern int optind, opterr, optopt;
#endif #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 * this is a serious performance problem for applications doing large
* amounts of IO with getc (as is done here). If available, use * amounts of IO with putc (as is done here). If available, use
* the getc_unlocked varient instead. * the putc_unlocked varient instead.
*/ */
#if defined(getc_unlocked) || defined(_IO_getc_unlocked) #if defined(putc_unlocked) || defined(_IO_putc_unlocked)
#define GETC(f) getc_unlocked(f)
#define PUTC(c,f) putc_unlocked(c,f) #define PUTC(c,f) putc_unlocked(c,f)
#else #else
#define GETC(f) getc(f)
#define PUTC(c,f) putc(c,f) #define PUTC(c,f) putc(c,f)
#endif #endif

View File

@ -37,16 +37,6 @@
* functions are also needed in slightly modified form * functions are also needed in slightly modified form
*/ */
void
FcMemAlloc (int kind, int size)
{
}
void
FcMemFree (int kind, int size)
{
}
FcPrivate void FcPrivate void
FcCacheObjectReference (void *object) 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 MAX_LANG_SET_MAP ((MAX_LANG + 31) / 32)
#define BitSet(map, i) ((map)[(entries[i].id)>>5] |= ((FcChar32) 1 << ((entries[i].id) & 0x1f))) #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 int
main (int argc, char **argv) main (int argc, char **argv)