mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Remove deprecated Power Display event methods
Removed `ShowPowerDisplayEvent`, `TerminatePowerDisplayEvent`, `SettingsUpdatedPowerDisplayEvent`, and `ApplyColorTemperaturePowerDisplayEvent` methods from the `Constants` class in `Constants.cpp`, `Constants.h`, and `Constants.idl`. These methods were associated with Power Display functionality that is no longer needed. This change simplifies the codebase by removing unused constants and methods related to Power Display events.
This commit is contained in:
@@ -195,26 +195,10 @@ namespace winrt::PowerToys::Interop::implementation
|
||||
{
|
||||
return CommonSharedConstants::CMDPAL_SHOW_EVENT;
|
||||
}
|
||||
hstring Constants::ShowPowerDisplayEvent()
|
||||
{
|
||||
return CommonSharedConstants::SHOW_POWER_DISPLAY_EVENT;
|
||||
}
|
||||
hstring Constants::TerminatePowerDisplayEvent()
|
||||
{
|
||||
return CommonSharedConstants::TERMINATE_POWER_DISPLAY_EVENT;
|
||||
}
|
||||
hstring Constants::RefreshPowerDisplayMonitorsEvent()
|
||||
{
|
||||
return CommonSharedConstants::REFRESH_POWER_DISPLAY_MONITORS_EVENT;
|
||||
}
|
||||
hstring Constants::SettingsUpdatedPowerDisplayEvent()
|
||||
{
|
||||
return CommonSharedConstants::SETTINGS_UPDATED_POWER_DISPLAY_EVENT;
|
||||
}
|
||||
hstring Constants::ApplyColorTemperaturePowerDisplayEvent()
|
||||
{
|
||||
return CommonSharedConstants::APPLY_COLOR_TEMPERATURE_POWER_DISPLAY_EVENT;
|
||||
}
|
||||
hstring Constants::ApplyProfilePowerDisplayEvent()
|
||||
{
|
||||
return CommonSharedConstants::APPLY_PROFILE_POWER_DISPLAY_EVENT;
|
||||
|
||||
@@ -52,11 +52,7 @@ namespace winrt::PowerToys::Interop::implementation
|
||||
static hstring WorkspacesHotkeyEvent();
|
||||
static hstring PowerToysRunnerTerminateSettingsEvent();
|
||||
static hstring ShowCmdPalEvent();
|
||||
static hstring ShowPowerDisplayEvent();
|
||||
static hstring TerminatePowerDisplayEvent();
|
||||
static hstring RefreshPowerDisplayMonitorsEvent();
|
||||
static hstring SettingsUpdatedPowerDisplayEvent();
|
||||
static hstring ApplyColorTemperaturePowerDisplayEvent();
|
||||
static hstring ApplyProfilePowerDisplayEvent();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,11 +49,7 @@ namespace PowerToys
|
||||
static String WorkspacesHotkeyEvent();
|
||||
static String PowerToysRunnerTerminateSettingsEvent();
|
||||
static String ShowCmdPalEvent();
|
||||
static String ShowPowerDisplayEvent();
|
||||
static String TerminatePowerDisplayEvent();
|
||||
static String RefreshPowerDisplayMonitorsEvent();
|
||||
static String SettingsUpdatedPowerDisplayEvent();
|
||||
static String ApplyColorTemperaturePowerDisplayEvent();
|
||||
static String ApplyProfilePowerDisplayEvent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user