From a62e9f99a2e49c0668d7ee7d3a54c131ba07ab1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 3 Oct 2017 14:21:13 -0400 Subject: [PATCH] backends: Remave unused meta_monitor_manager_get_resources() API --- src/backends/meta-monitor-manager-private.h | 8 ------- src/backends/meta-monitor-manager.c | 26 --------------------- 2 files changed, 34 deletions(-) diff --git a/src/backends/meta-monitor-manager-private.h b/src/backends/meta-monitor-manager-private.h index 3bf8864c4..5ac683dbe 100644 --- a/src/backends/meta-monitor-manager-private.h +++ b/src/backends/meta-monitor-manager-private.h @@ -362,14 +362,6 @@ GList * meta_monitor_manager_get_monitors (MetaMonitorManager * GList * meta_monitor_manager_get_outputs (MetaMonitorManager *manager); -void meta_monitor_manager_get_resources (MetaMonitorManager *manager, - MetaCrtcMode **modes, - unsigned int *n_modes, - MetaCrtc **crtcs, - unsigned int *n_crtcs, - MetaOutput **outputs, - unsigned int *n_outputs); - void meta_monitor_manager_get_screen_size (MetaMonitorManager *manager, int *width, int *height); diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index 82b50e0be..c9447339e 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -2409,32 +2409,6 @@ meta_monitor_manager_get_outputs (MetaMonitorManager *manager) return manager->outputs; } -void -meta_monitor_manager_get_resources (MetaMonitorManager *manager, - MetaCrtcMode **modes, - unsigned int *n_modes, - MetaCrtc **crtcs, - unsigned int *n_crtcs, - MetaOutput **outputs, - unsigned int *n_outputs) -{ - if (modes) - { - *modes = manager->modes; - *n_modes = manager->n_modes; - } - if (crtcs) - { - *crtcs = manager->crtcs; - *n_crtcs = manager->n_crtcs; - } - if (outputs) - { - *outputs = manager->outputs; - *n_outputs = manager->n_outputs; - } -} - void meta_monitor_manager_get_screen_size (MetaMonitorManager *manager, int *width,