display: Delete unrelated logic with headed profile 51/318051/2 accepted/tizen/unified/20240924.153246 accepted/tizen/unified/toolchain/20241004.101512 accepted/tizen/unified/x/20240925.015921 accepted/tizen/unified/x/asan/20241013.235829
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 24 Sep 2024 04:55:11 +0000 (13:55 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 24 Sep 2024 05:08:45 +0000 (14:08 +0900)
Variable displayon_by_powerkey_timeout_id was used in wearable profile,
and related logic was removed from 8d24bc37a4e485e72493b54c0c562f1cf5b60ee0 commit.
Thus, unnecessary variable should be removed.

Change-Id: I6b923586b3fcb24dbeeb805f9ac245dd7ebe69a3
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/deviced-input/deviced-input.c

index a2556e30e284379148c50284ee73849d7119f25f..8c0438f76ed04180f9b7769d631267b02bbcd62a 100644 (file)
@@ -85,7 +85,6 @@ enum combination_process {
 static struct timeval pressed_time;
 static guint longkey_timeout_id = 0;
 static guint longkey_restore_id = 0;
-static guint displayon_by_powerkey_timeout_id = 0;
 static int cancel_lcdoff;
 static int key_combination = KEY_COMBINATION_STOP;
 static double combination_pressed_time;
@@ -406,10 +405,6 @@ static void check_key_combination(struct input_event *pinput)
        case COMBINATION_TORCH:
                if (diff_time <= TORCH_COMBINATION_INTERVAL) {
                        /* When torch combination, display control should be not change. */
-                       if (displayon_by_powerkey_timeout_id) {
-                               g_source_remove(displayon_by_powerkey_timeout_id);
-                               displayon_by_powerkey_timeout_id = 0;
-                       }
                        _I("Combination key : TORCH mode");
                        skip_combination = true;
                } else