Remove unneeded stuff
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 31 Dec 2012 23:20:12 +0000 (17:20 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 31 Dec 2012 23:20:12 +0000 (17:20 -0600)
fc-cat/fc-cat.c
fc-lang/fc-lang.c

index 72912b7..9a2abb3 100644 (file)
@@ -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
 
index 93200c4..83b13e1 100644 (file)
  * 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)