From: duna.oh Date: Wed, 11 Dec 2024 07:19:08 +0000 (+0900) Subject: input: remove unused variable 'keymap' X-Git-Tag: accepted/tizen/unified/20241216.185842~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F316179%2F1;p=platform%2Fupstream%2Fenlightenment.git input: remove unused variable 'keymap' Change-Id: Ic30775d5b2cac1b2e7931d92c8e53537195ac725 --- diff --git a/src/bin/inputmgr/e_devicemgr_input.c b/src/bin/inputmgr/e_devicemgr_input.c index c1a1164488..da0c2da0fa 100644 --- a/src/bin/inputmgr/e_devicemgr_input.c +++ b/src/bin/inputmgr/e_devicemgr_input.c @@ -187,13 +187,7 @@ _e_devicemgr_input_mouse_button_remap(Ecore_Event_Mouse_Button *ev, Eina_Bool pr { Ecore_Event_Key *ev_key; E_Keyrouter_Event_Data *key_data; - struct xkb_keymap *keymap = NULL; - g_rec_mutex_lock(&e_comp_input_key->xkb.keymap_mutex); - keymap = e_comp_input_key->xkb.keymap; - g_rec_mutex_unlock(&e_comp_input_key->xkb.keymap_mutex); - - EINA_SAFETY_ON_NULL_RETURN_VAL(keymap, ECORE_CALLBACK_PASS_ON); EINA_SAFETY_ON_NULL_RETURN_VAL(ev, ECORE_CALLBACK_PASS_ON); if (ev->buttons != 3) return ECORE_CALLBACK_PASS_ON; diff --git a/src/bin/inputmgr/e_devicemgr_inputgen.c b/src/bin/inputmgr/e_devicemgr_inputgen.c index f9d4ac7bb2..e921bdbf24 100644 --- a/src/bin/inputmgr/e_devicemgr_inputgen.c +++ b/src/bin/inputmgr/e_devicemgr_inputgen.c @@ -1064,7 +1064,6 @@ e_devicemgr_inputgen_generate_key(struct wl_client *client, struct wl_resource * char *name, *identifier = NULL; Eina_Stringshare *name_data; int ret; - struct xkb_keymap *keymap = NULL; name = _e_devicemgr_inputgen_name_get(resource); @@ -1074,16 +1073,6 @@ e_devicemgr_inputgen_generate_key(struct wl_client *client, struct wl_resource * return TIZEN_INPUT_DEVICE_MANAGER_ERROR_INVALID_PARAMETER; } - g_rec_mutex_lock(&e_comp_input_key->xkb.keymap_mutex); - keymap = e_comp_input_key->xkb.keymap; - g_rec_mutex_unlock(&e_comp_input_key->xkb.keymap_mutex); - - if (!keymap) - { - DMWRN("keymap is not ready\n"); - return TIZEN_INPUT_DEVICE_MANAGER_ERROR_INVALID_PARAMETER; - } - EINA_LIST_FOREACH(e_devicemgr->inputgen.kbd_list, l, ddata) { if (!strncmp(ddata->name, name, UINPUT_MAX_NAME_SIZE)) diff --git a/src/bin/server/e_comp_wl.c b/src/bin/server/e_comp_wl.c index 0e97e4223e..68dd0fe07c 100644 --- a/src/bin/server/e_comp_wl.c +++ b/src/bin/server/e_comp_wl.c @@ -5072,7 +5072,6 @@ e_comp_wl_key_cancel(E_Client *ec, int keycode, Ecore_Device *dev, uint32_t time Eina_List *l; uint32_t serial, wl_keycode, cancel_keycode; E_Comp_Config *comp_conf = NULL; - struct xkb_keymap *keymap = NULL; E_Comp_Wl_Data *comp_wl; EINA_SAFETY_ON_NULL_RETURN_VAL(ec, EINA_FALSE); @@ -5081,11 +5080,6 @@ e_comp_wl_key_cancel(E_Client *ec, int keycode, Ecore_Device *dev, uint32_t time comp_wl = e_comp_wl_get(); EINA_SAFETY_ON_NULL_RETURN_VAL(comp_wl, EINA_FALSE); - g_rec_mutex_lock(&e_comp_input_key->xkb.keymap_mutex); - keymap = e_comp_input_key->xkb.keymap; - g_rec_mutex_unlock(&e_comp_input_key->xkb.keymap_mutex); - EINA_SAFETY_ON_NULL_RETURN_VAL(keymap, EINA_FALSE); - struct wl_resource *surface = e_comp_wl_client_surface_get(ec); EINA_SAFETY_ON_NULL_RETURN_VAL(surface, EINA_FALSE);