From d5938958c0c7c4669c120d2b4c6893a5ec026b11 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 2 Aug 2023 13:03:00 +0200 Subject: [PATCH] clutter: Drop ClutterBackend translate_event vmethod Despite the attempt to make this a generic interface, this was pretty much used only by the X11 backend, and now it ported away from it. This now stands unused and may be removed, in favor of backends each creating and injecting events as they please. Part-of: --- clutter/clutter/clutter-backend-private.h | 9 --------- clutter/clutter/clutter-backend.c | 10 ---------- src/backends/x11/meta-clutter-backend-x11.c | 9 --------- 3 files changed, 28 deletions(-) diff --git a/clutter/clutter/clutter-backend-private.h b/clutter/clutter/clutter-backend-private.h index c70f3559a..da30123da 100644 --- a/clutter/clutter/clutter-backend-private.h +++ b/clutter/clutter/clutter-backend-private.h @@ -79,10 +79,6 @@ struct _ClutterBackendClass gboolean (* create_context) (ClutterBackend *backend, GError **error); - gboolean (* translate_event) (ClutterBackend *backend, - gpointer native, - ClutterEvent *event); - ClutterSeat * (* get_default_seat) (ClutterBackend *backend); gboolean (* is_display_server) (ClutterBackend *backend); @@ -102,11 +98,6 @@ gboolean _clutter_backend_create_context (Clutter gboolean _clutter_backend_finish_init (ClutterBackend *backend, GError **error); -CLUTTER_EXPORT -gboolean _clutter_backend_translate_event (ClutterBackend *backend, - gpointer native, - ClutterEvent *event); - gfloat _clutter_backend_get_units_per_em (ClutterBackend *backend, PangoFontDescription *font_desc); gint32 _clutter_backend_get_units_serial (ClutterBackend *backend); diff --git a/clutter/clutter/clutter-backend.c b/clutter/clutter/clutter-backend.c index f04621a69..bf2639e5f 100644 --- a/clutter/clutter/clutter-backend.c +++ b/clutter/clutter/clutter-backend.c @@ -626,16 +626,6 @@ _clutter_backend_get_units_serial (ClutterBackend *backend) return backend->units_serial; } -gboolean -_clutter_backend_translate_event (ClutterBackend *backend, - gpointer native, - ClutterEvent *event) -{ - return CLUTTER_BACKEND_GET_CLASS (backend)->translate_event (backend, - native, - event); -} - /** * clutter_backend_get_cogl_context: * @backend: a #ClutterBackend diff --git a/src/backends/x11/meta-clutter-backend-x11.c b/src/backends/x11/meta-clutter-backend-x11.c index 03e90fd92..39b3f235a 100644 --- a/src/backends/x11/meta-clutter-backend-x11.c +++ b/src/backends/x11/meta-clutter-backend-x11.c @@ -212,14 +212,6 @@ meta_clutter_backend_x11_create_stage (ClutterBackend *clutter_backend, return stage; } -static gboolean -meta_clutter_backend_x11_translate_event (ClutterBackend *clutter_backend, - gpointer native, - ClutterEvent *event) -{ - return FALSE; -} - static ClutterSeat * meta_clutter_backend_x11_get_default_seat (ClutterBackend *clutter_backend) { @@ -252,7 +244,6 @@ meta_clutter_backend_x11_class_init (MetaClutterBackendX11Class *klass) clutter_backend_class->get_display = meta_clutter_backend_x11_get_display; clutter_backend_class->get_renderer = meta_clutter_backend_x11_get_renderer; clutter_backend_class->create_stage = meta_clutter_backend_x11_create_stage; - clutter_backend_class->translate_event = meta_clutter_backend_x11_translate_event; clutter_backend_class->get_default_seat = meta_clutter_backend_x11_get_default_seat; clutter_backend_class->is_display_server = meta_clutter_backend_x11_is_display_server; }