[mutter/wip/carlosg/backendless-clutter: 37/41] clutter: Drop dead X11 code




commit a194c4ac699811d479bc5005f0d0a0457796b9aa
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 10 23:02:11 2021 +0200

    clutter: Drop dead X11 code
    
    We don't use the ClutterBackendX11 direct constructor, nor the
    stereo stages.

 clutter/clutter/x11/clutter-backend-x11.c | 61 -------------------------------
 clutter/clutter/x11/clutter-backend-x11.h |  5 ---
 clutter/clutter/x11/clutter-x11.h         |  5 ---
 3 files changed, 71 deletions(-)
---
diff --git a/clutter/clutter/x11/clutter-backend-x11.c b/clutter/clutter/x11/clutter-backend-x11.c
index 3d1856a970..4d9286e856 100644
--- a/clutter/clutter/x11/clutter-backend-x11.c
+++ b/clutter/clutter/x11/clutter-backend-x11.c
@@ -534,12 +534,6 @@ clutter_backend_x11_init (ClutterBackendX11 *backend_x11)
   backend_x11->last_event_time = CurrentTime;
 }
 
-ClutterBackend *
-clutter_backend_x11_new (void)
-{
-  return g_object_new (CLUTTER_TYPE_BACKEND_X11, NULL);
-}
-
 static int
 error_handler(Display     *xdpy,
               XErrorEvent *error)
@@ -791,58 +785,3 @@ clutter_x11_remove_filter (ClutterX11FilterFunc func,
         }
     }
 }
-
-/**
- * clutter_x11_set_use_stereo_stage:
- * @use_stereo: %TRUE if the stereo stages should be used if possible.
- *
- * Sets whether the backend object for Clutter stages, will,
- * if possible, be created with the ability to support stereo drawing
- * (drawing separate images for the left and right eyes).
- *
- * This function must be called before clutter_init() is called.
- * During paint callbacks, cogl_framebuffer_is_stereo() can be called
- * on the framebuffer retrieved by cogl_get_draw_framebuffer() to
- * determine if stereo support was successfully enabled, and
- * cogl_framebuffer_set_stereo_mode() to determine which buffers
- * will be drawn to.
- *
- * Note that this function *does not* cause the stage to be drawn
- * multiple times with different perspective transformations and thus
- * appear in 3D, it simply enables individual ClutterActors to paint
- * different images for the left and and right eye.
- *
- * Since: 1.22
- */
-void
-clutter_x11_set_use_stereo_stage (gboolean use_stereo)
-{
-  if (_clutter_context_is_initialized ())
-    {
-      g_warning ("%s() can only be used before calling clutter_init()",
-                 G_STRFUNC);
-      return;
-    }
-
-  CLUTTER_NOTE (BACKEND, "STEREO stages are %s",
-                use_stereo ? "enabled" : "disabled");
-
-  clutter_enable_stereo = use_stereo;
-}
-
-/**
- * clutter_x11_get_use_stereo_stage:
- *
- * Retrieves whether the Clutter X11 backend will create stereo
- * stages if possible.
- *
- * Return value: %TRUE if stereo stages are used if possible
- *
- * Since: 1.22
- */
-gboolean
-clutter_x11_get_use_stereo_stage (void)
-{
-  return clutter_enable_stereo;
-}
-
diff --git a/clutter/clutter/x11/clutter-backend-x11.h b/clutter/clutter/x11/clutter-backend-x11.h
index 84db2e2541..64a2c2d78d 100644
--- a/clutter/clutter/x11/clutter-backend-x11.h
+++ b/clutter/clutter/x11/clutter-backend-x11.h
@@ -93,11 +93,6 @@ struct _ClutterBackendX11Class
 CLUTTER_EXPORT
 GType clutter_backend_x11_get_type (void) G_GNUC_CONST;
 
-ClutterBackend *clutter_backend_x11_new (void);
-
-/* Private to glx/eglx backends */
-void            _clutter_x11_select_events (Window xwin);
-
 G_END_DECLS
 
 #endif /* __CLUTTER_BACKEND_X11_H__ */
diff --git a/clutter/clutter/x11/clutter-x11.h b/clutter/clutter/x11/clutter-x11.h
index bdaf2cbd62..7a3ce02216 100644
--- a/clutter/clutter/x11/clutter-x11.h
+++ b/clutter/clutter/x11/clutter-x11.h
@@ -109,11 +109,6 @@ CLUTTER_EXPORT
 void         clutter_x11_remove_filter (ClutterX11FilterFunc func,
                                         gpointer             data);
 
-CLUTTER_EXPORT
-void     clutter_x11_set_use_stereo_stage (gboolean use_stereo);
-CLUTTER_EXPORT
-gboolean clutter_x11_get_use_stereo_stage (void);
-
 G_END_DECLS
 
 #endif /* __CLUTTER_X11_H__ */


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