From 08f39e151e6074c787a8114b24033947825f74d5 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 2 Apr 2021 12:19:15 +0200 Subject: [PATCH] main: Remove unused inhibition switch reason --- src/ppd-driver.c | 2 -- src/ppd-driver.h | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ppd-driver.c b/src/ppd-driver.c index 91eb985..63a0cf9 100644 --- a/src/ppd-driver.c +++ b/src/ppd-driver.c @@ -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: diff --git a/src/ppd-driver.h b/src/ppd-driver.h index a694dc2..fc1375f 100644 --- a/src/ppd-driver.h +++ b/src/ppd-driver.h @@ -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;