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);