Remove unused meta_power_save_to_dpms_state

Unused since 5f6aee3419 ("kms/update: Make power saving an update wide
change").

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3154>
This commit is contained in:
Michel Dänzer 2023-08-06 11:13:44 +02:00 committed by Marge Bot
parent c3afdefd15
commit 15df7c62a3
2 changed files with 0 additions and 23 deletions

View File

@ -122,27 +122,6 @@ meta_monitor_manager_native_read_current_state (MetaMonitorManager *manager)
parent_class->read_current_state (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 static void
meta_monitor_manager_native_set_power_save_mode (MetaMonitorManager *manager, meta_monitor_manager_native_set_power_save_mode (MetaMonitorManager *manager,
MetaPowerSave mode) MetaPowerSave mode)

View File

@ -40,8 +40,6 @@ void meta_monitor_manager_native_pause (MetaMonitorManagerNative *manager_native
void meta_monitor_manager_native_resume (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, MetaGammaLut * meta_monitor_manager_native_get_cached_crtc_gamma (MetaMonitorManagerNative *manager_native,
MetaCrtcKms *crtc_kms); MetaCrtcKms *crtc_kms);