From 75a78702592e4d94d636f0070283c2805198c400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 12:01:46 +0200 Subject: [PATCH] Remove unused meta_wayland_tablet_pad_group_lookup_resource Never used AFAICT. Part-of: --- src/wayland/meta-wayland-tablet-pad-group.c | 14 -------------- src/wayland/meta-wayland-tablet-pad-group.h | 4 ---- 2 files changed, 18 deletions(-) diff --git a/src/wayland/meta-wayland-tablet-pad-group.c b/src/wayland/meta-wayland-tablet-pad-group.c index 31ef939d8..8c031a622 100644 --- a/src/wayland/meta-wayland-tablet-pad-group.c +++ b/src/wayland/meta-wayland-tablet-pad-group.c @@ -99,20 +99,6 @@ meta_wayland_tablet_pad_group_create_new_resource (MetaWaylandTabletPadGroup *gr return resource; } -struct wl_resource * -meta_wayland_tablet_pad_group_lookup_resource (MetaWaylandTabletPadGroup *group, - struct wl_client *client) -{ - struct wl_resource *resource; - - resource = wl_resource_find_for_client (&group->resource_list, client); - - if (!resource) - resource = wl_resource_find_for_client (&group->focus_resource_list, client); - - return resource; -} - gboolean meta_wayland_tablet_pad_group_has_button (MetaWaylandTabletPadGroup *group, guint button) diff --git a/src/wayland/meta-wayland-tablet-pad-group.h b/src/wayland/meta-wayland-tablet-pad-group.h index 073f9abdb..5d27e10ee 100644 --- a/src/wayland/meta-wayland-tablet-pad-group.h +++ b/src/wayland/meta-wayland-tablet-pad-group.h @@ -50,10 +50,6 @@ struct wl_resource * struct wl_client *client, struct wl_resource *pad_resource, uint32_t id); -struct wl_resource * - meta_wayland_tablet_pad_group_lookup_resource (MetaWaylandTabletPadGroup *group, - struct wl_client *client); - void meta_wayland_tablet_pad_group_notify (MetaWaylandTabletPadGroup *group, struct wl_resource *resource);