From 15df7c62a35987e108ed9b9d6fc1acb510da2427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 11:13:44 +0200 Subject: [PATCH] Remove unused meta_power_save_to_dpms_state Unused since 5f6aee341959 ("kms/update: Make power saving an update wide change"). Part-of: --- .../native/meta-monitor-manager-native.c | 21 ------------------- .../native/meta-monitor-manager-native.h | 2 -- 2 files changed, 23 deletions(-) diff --git a/src/backends/native/meta-monitor-manager-native.c b/src/backends/native/meta-monitor-manager-native.c index 899e292bb..b0f96518b 100644 --- a/src/backends/native/meta-monitor-manager-native.c +++ b/src/backends/native/meta-monitor-manager-native.c @@ -122,27 +122,6 @@ meta_monitor_manager_native_read_current_state (MetaMonitorManager *manager) parent_class->read_current_state (manager); } -uint64_t -meta_power_save_to_dpms_state (MetaPowerSave power_save) -{ - switch (power_save) - { - case META_POWER_SAVE_ON: - return DRM_MODE_DPMS_ON; - case META_POWER_SAVE_STANDBY: - return DRM_MODE_DPMS_STANDBY; - case META_POWER_SAVE_SUSPEND: - return DRM_MODE_DPMS_SUSPEND; - case META_POWER_SAVE_OFF: - return DRM_MODE_DPMS_OFF; - case META_POWER_SAVE_UNSUPPORTED: - return DRM_MODE_DPMS_ON; - } - - g_warn_if_reached (); - return DRM_MODE_DPMS_ON; -} - static void meta_monitor_manager_native_set_power_save_mode (MetaMonitorManager *manager, MetaPowerSave mode) diff --git a/src/backends/native/meta-monitor-manager-native.h b/src/backends/native/meta-monitor-manager-native.h index 370f5538f..b2813d34b 100644 --- a/src/backends/native/meta-monitor-manager-native.h +++ b/src/backends/native/meta-monitor-manager-native.h @@ -40,8 +40,6 @@ void meta_monitor_manager_native_pause (MetaMonitorManagerNative *manager_native void meta_monitor_manager_native_resume (MetaMonitorManagerNative *manager_native); -uint64_t meta_power_save_to_dpms_state (MetaPowerSave power_save); - MetaGammaLut * meta_monitor_manager_native_get_cached_crtc_gamma (MetaMonitorManagerNative *manager_native, MetaCrtcKms *crtc_kms);