Evas: Fix compiler warning wrt comparison of signed & unsigned.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 20 Aug 2011 10:26:41 +0000 (10:26 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 20 Aug 2011 10:26:41 +0000 (10:26 +0000)
Remove unused function.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@62625 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/software_x11/evas_xcb_outbuf.c

index 22f3701..71759be 100644 (file)
@@ -17,7 +17,6 @@ struct _Outbuf_Region
 static Xcb_Output_Buffer *_find_xcbob(xcb_connection_t *conn, xcb_visualtype_t *vis, int depth, int w, int h, Eina_Bool shm, void *data);
 static void _unfind_xcbob(Xcb_Output_Buffer *xcbob, Eina_Bool sync);
 static void _clear_xcbob(Eina_Bool sync);
-static xcb_format_t *_find_format_by_depth(const xcb_setup_t *setup, uint8_t depth);
 static void _xcbob_sync(xcb_connection_t *conn);
 
 /* local variables */
@@ -1049,7 +1048,7 @@ _unfind_xcbob(Xcb_Output_Buffer *xcbob, Eina_Bool sync)
         _shmpool = eina_list_prepend(_shmpool, xcbob);
         _shmsize += xcbob->psize * xcbob->xim->depth / 8;
         while ((_shmsize > _shmlimit) || 
-               ((int)eina_list_count(_shmpool) > _shmcountlimit))
+               (eina_list_count(_shmpool) > _shmcountlimit))
           {
              Eina_List *xl = NULL;
 
@@ -1085,21 +1084,6 @@ _clear_xcbob(Eina_Bool sync)
    SHMPOOL_UNLOCK();
 }
 
-static xcb_format_t *
-_find_format_by_depth(const xcb_setup_t *setup, uint8_t depth) 
-{
-   xcb_format_t *fmt, *fmt_end;
-
-   fmt = xcb_setup_pixmap_formats(setup);
-   fmt_end = fmt + xcb_setup_pixmap_formats_length(setup);
-
-   for (; fmt != fmt_end; ++fmt)
-     if (fmt->depth == depth)
-       return fmt;
-
-   return 0;
-}
-
 static void 
 _xcbob_sync(xcb_connection_t *conn) 
 {