clutter: Drop infrastructure to copy/free platform event data

This is now unused, all information belongs to ClutterEvents.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1623>
This commit is contained in:
Carlos Garnacho 2020-12-08 13:40:34 +01:00 committed by Marge Bot
parent 64d5e8a9bd
commit 0842ac936f
6 changed files with 0 additions and 73 deletions

View File

@ -117,11 +117,6 @@ gboolean _clutter_backend_post_parse (Clutter
GError **error); GError **error);
void _clutter_backend_init_events (ClutterBackend *backend); void _clutter_backend_init_events (ClutterBackend *backend);
void _clutter_backend_copy_event_data (ClutterBackend *backend,
const ClutterEvent *src,
ClutterEvent *dest);
void _clutter_backend_free_event_data (ClutterBackend *backend,
ClutterEvent *event);
CLUTTER_EXPORT CLUTTER_EXPORT
gboolean _clutter_backend_translate_event (ClutterBackend *backend, gboolean _clutter_backend_translate_event (ClutterBackend *backend,
gpointer native, gpointer native,

View File

@ -678,31 +678,6 @@ _clutter_backend_get_units_per_em (ClutterBackend *backend,
return backend->units_per_em; return backend->units_per_em;
} }
void
_clutter_backend_copy_event_data (ClutterBackend *backend,
const ClutterEvent *src,
ClutterEvent *dest)
{
ClutterSeatClass *seat_class;
ClutterSeat *seat;
seat = clutter_backend_get_default_seat (backend);
seat_class = CLUTTER_SEAT_GET_CLASS (seat);
seat_class->copy_event_data (seat, src, dest);
}
void
_clutter_backend_free_event_data (ClutterBackend *backend,
ClutterEvent *event)
{
ClutterSeatClass *seat_class;
ClutterSeat *seat;
seat = clutter_backend_get_default_seat (backend);
seat_class = CLUTTER_SEAT_GET_CLASS (seat);
seat_class->free_event_data (seat, event);
}
/** /**
* clutter_get_default_backend: * clutter_get_default_backend:
* *

View File

@ -1353,10 +1353,6 @@ clutter_event_copy (const ClutterEvent *event)
break; break;
} }
_clutter_backend_copy_event_data (clutter_get_default_backend (),
event,
new_event);
return new_event; return new_event;
} }
@ -1373,8 +1369,6 @@ clutter_event_free (ClutterEvent *event)
{ {
ClutterEventPrivate *real_event = (ClutterEventPrivate *) event; ClutterEventPrivate *real_event = (ClutterEventPrivate *) event;
_clutter_backend_free_event_data (clutter_get_default_backend (), event);
g_clear_object (&real_event->device); g_clear_object (&real_event->device);
g_clear_object (&real_event->source_device); g_clear_object (&real_event->source_device);

View File

@ -101,13 +101,6 @@ struct _ClutterSeatClass
graphene_point_t *coords, graphene_point_t *coords,
ClutterModifierType *modifiers); ClutterModifierType *modifiers);
/* Event platform data */
void (* copy_event_data) (ClutterSeat *seat,
const ClutterEvent *src,
ClutterEvent *dest);
void (* free_event_data) (ClutterSeat *seat,
ClutterEvent *event);
/* Virtual devices */ /* Virtual devices */
ClutterVirtualInputDevice * (* create_virtual_device) (ClutterSeat *seat, ClutterVirtualInputDevice * (* create_virtual_device) (ClutterSeat *seat,
ClutterInputDeviceType device_type); ClutterInputDeviceType device_type);

View File

@ -288,19 +288,6 @@ meta_seat_native_get_keymap (ClutterSeat *seat)
return CLUTTER_KEYMAP (seat_native->keymap); return CLUTTER_KEYMAP (seat_native->keymap);
} }
static void
meta_seat_native_copy_event_data (ClutterSeat *seat,
const ClutterEvent *src,
ClutterEvent *dest)
{
}
static void
meta_seat_native_free_event_data (ClutterSeat *seat,
ClutterEvent *event)
{
}
static guint static guint
bump_virtual_touch_slot_base (MetaSeatNative *seat_native) bump_virtual_touch_slot_base (MetaSeatNative *seat_native)
{ {
@ -419,8 +406,6 @@ meta_seat_native_class_init (MetaSeatNativeClass *klass)
seat_class->peek_devices = meta_seat_native_peek_devices; seat_class->peek_devices = meta_seat_native_peek_devices;
seat_class->bell_notify = meta_seat_native_bell_notify; seat_class->bell_notify = meta_seat_native_bell_notify;
seat_class->get_keymap = meta_seat_native_get_keymap; seat_class->get_keymap = meta_seat_native_get_keymap;
seat_class->copy_event_data = meta_seat_native_copy_event_data;
seat_class->free_event_data = meta_seat_native_free_event_data;
seat_class->create_virtual_device = meta_seat_native_create_virtual_device; seat_class->create_virtual_device = meta_seat_native_create_virtual_device;
seat_class->get_supported_virtual_device_types = meta_seat_native_get_supported_virtual_device_types; seat_class->get_supported_virtual_device_types = meta_seat_native_get_supported_virtual_device_types;
seat_class->compress_motion = meta_seat_native_compress_motion; seat_class->compress_motion = meta_seat_native_compress_motion;

View File

@ -1439,19 +1439,6 @@ meta_seat_x11_get_keymap (ClutterSeat *seat)
return CLUTTER_KEYMAP (META_SEAT_X11 (seat)->keymap); return CLUTTER_KEYMAP (META_SEAT_X11 (seat)->keymap);
} }
static void
meta_seat_x11_copy_event_data (ClutterSeat *seat,
const ClutterEvent *src,
ClutterEvent *dest)
{
}
static void
meta_seat_x11_free_event_data (ClutterSeat *seat,
ClutterEvent *event)
{
}
static ClutterVirtualInputDevice * static ClutterVirtualInputDevice *
meta_seat_x11_create_virtual_device (ClutterSeat *seat, meta_seat_x11_create_virtual_device (ClutterSeat *seat,
ClutterInputDeviceType device_type) ClutterInputDeviceType device_type)
@ -1634,8 +1621,6 @@ meta_seat_x11_class_init (MetaSeatX11Class *klass)
seat_class->peek_devices = meta_seat_x11_peek_devices; seat_class->peek_devices = meta_seat_x11_peek_devices;
seat_class->bell_notify = meta_seat_x11_bell_notify; seat_class->bell_notify = meta_seat_x11_bell_notify;
seat_class->get_keymap = meta_seat_x11_get_keymap; seat_class->get_keymap = meta_seat_x11_get_keymap;
seat_class->copy_event_data = meta_seat_x11_copy_event_data;
seat_class->free_event_data = meta_seat_x11_free_event_data;
seat_class->create_virtual_device = meta_seat_x11_create_virtual_device; seat_class->create_virtual_device = meta_seat_x11_create_virtual_device;
seat_class->get_supported_virtual_device_types = meta_seat_x11_get_supported_virtual_device_types; seat_class->get_supported_virtual_device_types = meta_seat_x11_get_supported_virtual_device_types;
seat_class->warp_pointer = meta_seat_x11_warp_pointer; seat_class->warp_pointer = meta_seat_x11_warp_pointer;