[mutter] cogl: Remove unused cogl_x11_onscreen_get_visual_xid



commit 683f18639e4f723208665763024434fed5ee77e6
Author: Adam Jackson <ajax redhat com>
Date:   Thu Oct 24 16:17:02 2019 -0400

    cogl: Remove unused cogl_x11_onscreen_get_visual_xid
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/885

 cogl/cogl/cogl-onscreen.c | 17 -----------------
 cogl/cogl/cogl-onscreen.h |  4 ----
 2 files changed, 21 deletions(-)
---
diff --git a/cogl/cogl/cogl-onscreen.c b/cogl/cogl/cogl-onscreen.c
index c68971c60..8af1e1de1 100644
--- a/cogl/cogl/cogl-onscreen.c
+++ b/cogl/cogl/cogl-onscreen.c
@@ -443,23 +443,6 @@ cogl_x11_onscreen_get_window_xid (CoglOnscreen *onscreen)
       return winsys->onscreen_x11_get_window_xid (onscreen);
     }
 }
-
-uint32_t
-cogl_x11_onscreen_get_visual_xid (CoglOnscreen *onscreen)
-{
-  CoglContext *ctx = COGL_FRAMEBUFFER (onscreen)->context;
-  XVisualInfo *visinfo;
-  uint32_t id;
-
-  /* This should only be called for xlib based onscreens */
-  visinfo = cogl_xlib_renderer_get_visual_info (ctx->display->renderer);
-  if (visinfo == NULL)
-    return 0;
-
-  id = (uint32_t)visinfo->visualid;
-
-  return id;
-}
 #endif /* COGL_HAS_X11_SUPPORT */
 
 CoglFrameClosure *
diff --git a/cogl/cogl/cogl-onscreen.h b/cogl/cogl/cogl-onscreen.h
index 6504b56e5..8b2fd7245 100644
--- a/cogl/cogl/cogl-onscreen.h
+++ b/cogl/cogl/cogl-onscreen.h
@@ -156,10 +156,6 @@ cogl_x11_onscreen_set_foreign_window_xid (CoglOnscreen *onscreen,
 uint32_t
 cogl_x11_onscreen_get_window_xid (CoglOnscreen *onscreen);
 
-/* XXX: we should maybe remove this, since nothing currently uses
- * it and the current implementation looks dubious. */
-uint32_t
-cogl_x11_onscreen_get_visual_xid (CoglOnscreen *onscreen);
 #endif /* COGL_HAS_X11 */
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]