From f7d0f2ce20d9ab48f8bb91b551d6850071fde537 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 15 Jul 2020 19:35:12 +0200 Subject: [PATCH] backends: Drop unused function This meta_input_settings_get_tablet_mapping() was never necessary outside MetaInputSettings, nor used. It can simply go away. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1448 --- src/backends/meta-input-settings-private.h | 3 --- src/backends/meta-input-settings.c | 19 ------------------- 2 files changed, 22 deletions(-) diff --git a/src/backends/meta-input-settings-private.h b/src/backends/meta-input-settings-private.h index 0b8ac29ce..675a3837b 100644 --- a/src/backends/meta-input-settings-private.h +++ b/src/backends/meta-input-settings-private.h @@ -142,9 +142,6 @@ GSettings * meta_input_settings_get_tablet_settings (MetaInputSettings MetaLogicalMonitor * meta_input_settings_get_tablet_logical_monitor (MetaInputSettings *settings, ClutterInputDevice *device); -GDesktopTabletMapping meta_input_settings_get_tablet_mapping (MetaInputSettings *settings, - ClutterInputDevice *device); - gboolean meta_input_settings_is_pad_button_grabbed (MetaInputSettings *input_settings, ClutterInputDevice *pad, guint button); diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c index 0a0667688..8bfc95023 100644 --- a/src/backends/meta-input-settings.c +++ b/src/backends/meta-input-settings.c @@ -2204,25 +2204,6 @@ meta_input_settings_get_tablet_logical_monitor (MetaInputSettings *settings, return logical_monitor; } -GDesktopTabletMapping -meta_input_settings_get_tablet_mapping (MetaInputSettings *settings, - ClutterInputDevice *device) -{ - MetaInputSettingsPrivate *priv; - DeviceMappingInfo *info; - - g_return_val_if_fail (META_IS_INPUT_SETTINGS (settings), - G_DESKTOP_TABLET_MAPPING_ABSOLUTE); - g_return_val_if_fail (CLUTTER_IS_INPUT_DEVICE (device), - G_DESKTOP_TABLET_MAPPING_ABSOLUTE); - - priv = meta_input_settings_get_instance_private (settings); - info = g_hash_table_lookup (priv->mappable_devices, device); - g_return_val_if_fail (info != NULL, G_DESKTOP_TABLET_MAPPING_ABSOLUTE); - - return g_settings_get_enum (info->settings, "mapping"); -} - static GDesktopPadButtonAction meta_input_settings_get_pad_button_action (MetaInputSettings *input_settings, ClutterInputDevice *pad,