[mutter/wip/carlosg/input-thread: 29/51] backends/native: Remove unused function
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-thread: 29/51] backends/native: Remove unused function
- Date: Tue, 22 Sep 2020 14:21:59 +0000 (UTC)
commit 1bbddf29ba5e463a6a9d3be6001c89e54ed49f2e
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 5 18:07:36 2020 +0200
backends/native: Remove unused function
This meta_seat_native_get_device() function has been unused for some time.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
src/backends/native/meta-seat-native.c | 18 ------------------
src/backends/native/meta-seat-native.h | 3 ---
2 files changed, 21 deletions(-)
---
diff --git a/src/backends/native/meta-seat-native.c b/src/backends/native/meta-seat-native.c
index 8bca702d00..e9d712fd21 100644
--- a/src/backends/native/meta-seat-native.c
+++ b/src/backends/native/meta-seat-native.c
@@ -2850,24 +2850,6 @@ meta_seat_native_init (MetaSeatNative *seat)
seat->barrier_manager = meta_barrier_manager_native_new ();
}
-ClutterInputDevice *
-meta_seat_native_get_device (MetaSeatNative *seat,
- int id)
-{
- ClutterInputDevice *device;
- GSList *l;
-
- for (l = seat->devices; l; l = l->next)
- {
- device = l->data;
-
- if (clutter_input_device_get_device_id (device) == id)
- return device;
- }
-
- return NULL;
-}
-
/**
* meta_seat_native_set_device_callbacks: (skip)
* @open_callback: the user replacement for open()
diff --git a/src/backends/native/meta-seat-native.h b/src/backends/native/meta-seat-native.h
index b24120724b..8e98d0c6e3 100644
--- a/src/backends/native/meta-seat-native.h
+++ b/src/backends/native/meta-seat-native.h
@@ -171,9 +171,6 @@ void meta_seat_native_set_libinput_seat (MetaSeatNative *seat,
void meta_seat_native_sync_leds (MetaSeatNative *seat);
-ClutterInputDevice * meta_seat_native_get_device (MetaSeatNative *seat,
- int id);
-
MetaTouchState * meta_seat_native_acquire_touch_state (MetaSeatNative *seat,
int seat_slot);
MetaTouchState * meta_seat_native_lookup_touch_state (MetaSeatNative *seat,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]