main: Remove unused inhibition switch reason

This commit is contained in:
Bastien Nocera 2021-04-02 12:19:15 +02:00
parent 99740ead2d
commit 08f39e151e
2 changed files with 1 additions and 6 deletions

View file

@ -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:

View file

@ -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;