mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-09 04:48:08 +02:00
main: Remove unused inhibition switch reason
This commit is contained in:
parent
99740ead2d
commit
08f39e151e
2 changed files with 1 additions and 6 deletions
|
|
@ -324,8 +324,6 @@ const char *
|
|||
ppd_profile_activation_reason_to_str (PpdProfileActivationReason reason)
|
||||
{
|
||||
switch (reason) {
|
||||
case PPD_PROFILE_ACTIVATION_REASON_INHIBITION:
|
||||
return "inhibition";
|
||||
case PPD_PROFILE_ACTIVATION_REASON_INTERNAL:
|
||||
return "internal";
|
||||
case PPD_PROFILE_ACTIVATION_REASON_RESET:
|
||||
|
|
|
|||
|
|
@ -35,8 +35,6 @@ typedef enum {
|
|||
|
||||
/**
|
||||
* PpdProfileActivationReason:
|
||||
* @PPD_PROFILE_ACTIVATION_REASON_INHIBITION: switching profiles because
|
||||
* of performance profile inhibition.
|
||||
* @PPD_PROFILE_ACTIVATION_REASON_INTERNAL: the driver profile changed
|
||||
* internally, usually because of a key combination.
|
||||
* @PPD_PROFILE_ACTIVATION_REASON_RESET: setting profile on startup, or
|
||||
|
|
@ -49,8 +47,7 @@ typedef enum {
|
|||
* profile internally.
|
||||
*/
|
||||
typedef enum{
|
||||
PPD_PROFILE_ACTIVATION_REASON_INHIBITION = 0,
|
||||
PPD_PROFILE_ACTIVATION_REASON_INTERNAL,
|
||||
PPD_PROFILE_ACTIVATION_REASON_INTERNAL = 0,
|
||||
PPD_PROFILE_ACTIVATION_REASON_RESET,
|
||||
PPD_PROFILE_ACTIVATION_REASON_USER
|
||||
} PpdProfileActivationReason;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue