input: Remove unused bezel code 24/299924/2
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 12 Oct 2023 01:49:41 +0000 (10:49 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 16 Oct 2023 07:59:02 +0000 (16:59 +0900)
The headed profile has no bezel operation.

Change-Id: I03c7b78270242ce9c3a850932a577cd7b48ea6ad
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/deviced-input/deviced-input.c

index 7495df7cefe9f6f9884750055a4b72a6c67bf6e8..0884553f3d1dd4b8cd7da0ba0fe37f2292d27ae7 100644 (file)
@@ -91,7 +91,6 @@ static double combination_pressed_time;
 static bool touch_pressed = false;
 static int skip_lcd_off = false;
 static int skip_combination = false;
-static int bezel_wakeup = true;
 static int booting_check = true;
 
 #define POPUP_METHOD "PopupLaunch"
@@ -861,11 +860,7 @@ static void check_key_filter(struct timeval time, unsigned short type, unsigned
                if (ret < 0)
                        break;
 
-               if (current == SYSCOMMON_DEVICED_DISPLAY_STATE_OFF && bezel_wakeup) {
-                       switch_on_lcd(DEVICED_EVENT_INPUT_BEZEL);
-                       ignore = false;
-               } else if (current != SYSCOMMON_DEVICED_DISPLAY_STATE_OFF)
-                       ignore = false;
+               ignore = false;
                break;
        case EV_ABS:
                ret = syscommon_resman_get_resource_attr_int(SYSCOMMON_RESOURCE_ID(DEVICED_RESOURCE_TYPE_DISPLAY),
@@ -919,13 +914,6 @@ static int delayed_init_done(void *data)
        return 0;
 }
 
-static int bezel_wakeup_cb(void *data)
-{
-       bezel_wakeup = (int)((intptr_t)data);
-
-       return 0;
-}
-
 static syscommon_plugin_backend_deviced_input_funcs g_input_funcs = {
        .input_event_cb = check_key_filter,
 };
@@ -949,7 +937,6 @@ static int deviced_input_init(void **data)
                1);
 
        syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_DELAYED_INIT, delayed_init_done);
-       syscommon_notifier_subscribe_notify(DEVICED_NOTIFIER_BEZEL_WAKEUP, bezel_wakeup_cb);
 
        *data = (void *)&g_input_funcs;