diff --git a/clutter/clutter/x11/clutter-stage-x11.c b/clutter/clutter/x11/clutter-stage-x11.c index 62a67708e..54f9523e2 100644 --- a/clutter/clutter/x11/clutter-stage-x11.c +++ b/clutter/clutter/x11/clutter-stage-x11.c @@ -1390,37 +1390,6 @@ clutter_x11_get_stage_from_window (Window win) return NULL; } -/** - * clutter_x11_get_stage_visual: (skip) - * @stage: a #ClutterStage - * - * Returns an XVisualInfo suitable for creating a foreign window for the given - * stage. NOTE: It doesn't do as the name may suggest, which is return the - * XVisualInfo that was used to create an existing window for the given stage. - * - * XXX: It might be best to deprecate this function and replace with something - * along the lines of clutter_backend_x11_get_foreign_visual () or perhaps - * clutter_stage_x11_get_foreign_visual () - * - * Return value: (transfer full): An XVisualInfo suitable for creating a - * foreign stage. Use XFree() to free the returned value instead - * - * Deprecated: 1.2: Use clutter_x11_get_visual_info() instead - * - * Since: 0.4 - */ -XVisualInfo * -clutter_x11_get_stage_visual (ClutterStage *stage) -{ - ClutterBackend *backend = clutter_get_default_backend (); - ClutterBackendX11 *backend_x11; - - g_return_val_if_fail (CLUTTER_IS_BACKEND_X11 (backend), NULL); - backend_x11 = CLUTTER_BACKEND_X11 (backend); - - return _clutter_backend_x11_get_visual_info (backend_x11); -} - typedef struct { ClutterStageX11 *stage_x11; cairo_rectangle_int_t geom; diff --git a/clutter/clutter/x11/clutter-x11.h b/clutter/clutter/x11/clutter-x11.h index 088dba978..1df9cd05d 100644 --- a/clutter/clutter/x11/clutter-x11.h +++ b/clutter/clutter/x11/clutter-x11.h @@ -104,9 +104,6 @@ XVisualInfo *clutter_x11_get_visual_info (void); CLUTTER_EXPORT void clutter_x11_set_display (Display * xdpy); -CLUTTER_DEPRECATED_FOR(clutter_x11_get_visual_info) -XVisualInfo *clutter_x11_get_stage_visual (ClutterStage *stage); - CLUTTER_EXPORT Window clutter_x11_get_stage_window (ClutterStage *stage); CLUTTER_EXPORT