cogl: Remove unused cogl_x11_onscreen_get_visual_xid

https://gitlab.gnome.org/GNOME/mutter/merge_requests/885
This commit is contained in:
Adam Jackson 2019-10-24 16:17:02 -04:00
parent e17494f3bd
commit 683f18639e
2 changed files with 0 additions and 21 deletions

View File

@ -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 *

View File

@ -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 */
/**