Remove unused function hasExtension
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 29 Sep 2011 03:50:02 +0000 (20:50 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 29 Sep 2011 03:50:10 +0000 (20:50 -0700)
Leftover from the Xprint code removed in commit 889264a52a6cf988

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xdpyinfo.c

index 1e467c4..c0e8181 100644 (file)
@@ -439,21 +439,6 @@ print_visual_info(XVisualInfo *vip)
            vip->bits_per_rgb);
 }
 
-/* xc/programs/twm/twm.c has a copy of |hasExtension()|, please
- * keep both versions in sync... */
-static
-Bool hasExtension(Display *dpy, char *extname)
-{
-  int    num_extensions,
-         i;
-  char **extensions;
-  extensions = XListExtensions(dpy, &num_extensions);
-  for (i = 0; i < num_extensions &&
-         (strcmp(extensions[i], extname) != 0); i++);
-  XFreeExtensionList(extensions);
-  return i != num_extensions;
-}
-
 static void
 print_screen_info(Display *dpy, int scr)
 {