mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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:
parent
c3afdefd15
commit
15df7c62a3
@ -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)
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user