From 85de82bb4e30ad60213d35a1b23798020be478c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 17 Sep 2021 09:43:35 +0200 Subject: [PATCH] clutter: Remove 'stage cursor' feature It was unused. Part-of: --- clutter/clutter/clutter-enums.h | 2 -- src/backends/x11/meta-clutter-backend-x11.c | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/clutter/clutter/clutter-enums.h b/clutter/clutter/clutter-enums.h index 54344248f..2ae6d50bc 100644 --- a/clutter/clutter/clutter-enums.h +++ b/clutter/clutter/clutter-enums.h @@ -899,7 +899,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/ /** * ClutterFeatureFlags: * @CLUTTER_FEATURE_STAGE_STATIC: Set if stage size if fixed (i.e framebuffer) - * @CLUTTER_FEATURE_STAGE_CURSOR: Set if stage has a graphical cursor. * @CLUTTER_FEATURE_SHADERS_GLSL: Set if the backend supports GLSL shaders. * @CLUTTER_FEATURE_OFFSCREEN: Set if the backend supports offscreen rendering. * @CLUTTER_FEATURE_STAGE_MULTIPLE: Set if multiple stages are supported. @@ -913,7 +912,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/ typedef enum { CLUTTER_FEATURE_STAGE_STATIC = (1 << 6), - CLUTTER_FEATURE_STAGE_CURSOR = (1 << 8), CLUTTER_FEATURE_SHADERS_GLSL = (1 << 9), CLUTTER_FEATURE_OFFSCREEN = (1 << 10), CLUTTER_FEATURE_STAGE_MULTIPLE = (1 << 11), diff --git a/src/backends/x11/meta-clutter-backend-x11.c b/src/backends/x11/meta-clutter-backend-x11.c index 6ea57da8a..fafe31941 100644 --- a/src/backends/x11/meta-clutter-backend-x11.c +++ b/src/backends/x11/meta-clutter-backend-x11.c @@ -178,18 +178,6 @@ meta_clutter_backend_x11_finalize (GObject *gobject) G_OBJECT_CLASS (meta_clutter_backend_x11_parent_class)->finalize (gobject); } -static ClutterFeatureFlags -meta_clutter_backend_x11_get_features (ClutterBackend *clutter_backend) -{ - ClutterBackendClass *parent_class = - CLUTTER_BACKEND_CLASS (meta_clutter_backend_x11_parent_class); - ClutterFeatureFlags flags = CLUTTER_FEATURE_STAGE_CURSOR; - - flags |= parent_class->get_features (clutter_backend); - - return flags; -} - static void update_last_event_time (MetaClutterBackendX11 *clutter_backend_x11, XEvent *xevent) @@ -442,7 +430,6 @@ meta_clutter_backend_x11_class_init (MetaClutterBackendX11Class *klass) gobject_class->finalize = meta_clutter_backend_x11_finalize; clutter_backend_class->finish_init = meta_clutter_backend_x11_finish_init; - clutter_backend_class->get_features = meta_clutter_backend_x11_get_features; clutter_backend_class->get_display = meta_clutter_backend_x11_get_display; clutter_backend_class->get_renderer = meta_clutter_backend_x11_get_renderer;