From: Youngjae Cho Date: Tue, 13 Jun 2023 01:32:27 +0000 (+0900) Subject: power: Remove unused holdkeyblock code X-Git-Tag: accepted/tizen/unified/20230710.153954~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F294084%2F1;p=platform%2Fcore%2Fapi%2Fdevice.git power: Remove unused holdkeyblock code Change-Id: I641a7aad31906efdd966c74686288f7ebb8ba980 Signed-off-by: Youngjae Cho --- diff --git a/src/power.c b/src/power.c index 9776517..b957300 100644 --- a/src/power.c +++ b/src/power.c @@ -37,7 +37,6 @@ */ #define STAY_CUR_STATE 0x1 #define GOTO_STATE_NOW 0x2 -#define HOLD_KEY_BLOCK 0x4 #define STANDBY_MODE 0x8 /** @@ -60,7 +59,6 @@ #define STR_STAYCURSTATE "staycurstate" #define STR_GOTOSTATENOW "gotostatenow" -#define STR_HOLDKEYBLOCK "holdkeyblock" #define STR_STANDBYMODE "standbymode" #define STR_NULL "NULL" @@ -357,9 +355,7 @@ static int lock_state(display_state_e state, unsigned int flag, int timeout_ms) else arr[1] = STR_STAYCURSTATE; - if (flag & HOLD_KEY_BLOCK) - arr[2] = STR_HOLDKEYBLOCK; - else if (flag & STANDBY_MODE) + if (flag & STANDBY_MODE) arr[2] = STR_STANDBYMODE; else arr[2] = STR_NULL;