mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
cogl: Remove unused cogl_x11_onscreen_get_visual_xid
https://gitlab.gnome.org/GNOME/mutter/merge_requests/885
This commit is contained in:
parent
e17494f3bd
commit
683f18639e
@ -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 *
|
||||
|
@ -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 */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user