From ea668ebbcb9cd7aeb4ad53e2420bac7df83c6f28 Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Mon, 18 Mar 2024 19:27:47 +0900 Subject: [PATCH] e_input: remove unused member variable 'touch_device_count' from E_Input struct Change-Id: Ia9d2737adf3c49028b18a6195b73be51e99abcf2 --- src/bin/e_input.c | 1 - src/bin/e_input_evdev.c | 3 +-- src/include/e_input.h | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bin/e_input.c b/src/bin/e_input.c index 409ae72..d8052cc 100644 --- a/src/bin/e_input.c +++ b/src/bin/e_input.c @@ -175,7 +175,6 @@ e_input_init(Ecore_Evas *ee) e_input->input_base_dir = eina_stringshare_add("/dev/input"); e_input->use_thread = EINA_FALSE; - e_input->touch_device_count = 0; e_input->touch_max_count = 1;//This is going to updated when a touch device is attached. dev = e_input_device_open(); diff --git a/src/bin/e_input_evdev.c b/src/bin/e_input_evdev.c index 1de3a80..0cbe09c 100644 --- a/src/bin/e_input_evdev.c +++ b/src/bin/e_input_evdev.c @@ -184,8 +184,7 @@ _device_touch_count_update(E_Input_Evdev *edev) } } - ei->touch_device_count++; - ELOGF("E_INPUT_EVDEV_TOUCH", "Touch device count is %d.\n", NULL, ei->touch_device_count); + ELOGF("E_INPUT_EVDEV_TOUCH", "Touch max count is %d.\n", NULL, ei->touch_max_count); } static void diff --git a/src/include/e_input.h b/src/include/e_input.h index 1066085..58a2cdb 100644 --- a/src/include/e_input.h +++ b/src/include/e_input.h @@ -63,7 +63,6 @@ struct _E_Input Eina_Bool use_thread : 1; unsigned int touch_max_count; - unsigned int touch_device_count; e_input_relative_motion_cb relative_motion_handler; e_input_keyboard_grab_key_cb keyboard_grab_key_handler; -- 2.7.4