From d3ec28848b5fd4f4eae0e6046bbc4f28a38dff96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 11:04:47 +0200 Subject: [PATCH] Remove unused meta_monitor_get_crtc_mode_for_output Unused since e52641c4b68f ("cursor-renderer/native: Replace HW cursor with KMS cursor manager"). Part-of: --- src/backends/meta-monitor.c | 22 ---------------------- src/backends/meta-monitor.h | 4 ---- 2 files changed, 26 deletions(-) diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c index 084048406..0b49d372c 100644 --- a/src/backends/meta-monitor.c +++ b/src/backends/meta-monitor.c @@ -2166,28 +2166,6 @@ meta_monitor_mode_foreach_output (MetaMonitor *monitor, return TRUE; } -MetaMonitorCrtcMode * -meta_monitor_get_crtc_mode_for_output (MetaMonitor *monitor, - MetaMonitorMode *mode, - MetaOutput *output) -{ - MetaMonitorPrivate *monitor_priv = - meta_monitor_get_instance_private (monitor); - GList *l; - int i; - - for (l = monitor_priv->outputs, i = 0; l; l = l->next, i++) - { - MetaMonitorCrtcMode *monitor_crtc_mode = &mode->crtc_modes[i]; - - if (monitor_crtc_mode->output == output) - return monitor_crtc_mode; - } - - g_warn_if_reached (); - return NULL; -} - const char * meta_monitor_get_display_name (MetaMonitor *monitor) { diff --git a/src/backends/meta-monitor.h b/src/backends/meta-monitor.h index b780fbf28..9940aa0ba 100644 --- a/src/backends/meta-monitor.h +++ b/src/backends/meta-monitor.h @@ -269,10 +269,6 @@ gboolean meta_monitor_mode_foreach_output (MetaMonitor *monitor, gpointer user_data, GError **error); -MetaMonitorCrtcMode * meta_monitor_get_crtc_mode_for_output (MetaMonitor *monitor, - MetaMonitorMode *mode, - MetaOutput *output); - META_EXPORT_TEST gboolean meta_monitor_mode_should_be_advertised (MetaMonitorMode *monitor_mode);