e_keyrouter: remove the unused symbols 38/321738/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 27 Mar 2025 00:09:56 +0000 (09:09 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 27 Mar 2025 10:03:35 +0000 (19:03 +0900)
remove the macros and the symbols.

Change-Id: I445b4745af0bf131bf892cbc0dcb10d9316c5ca8

src/bin/inputmgr/e_keyrouter_intern.h
src/bin/inputmgr/e_keyrouter_list.c

index 59a8266e107273dd3f971c0a89877d8418662c84..72d05eb245f86e23ba1fcd8ed9ea2dd5d7e871e5 100644 (file)
@@ -4,14 +4,8 @@
 #include "e_intern.h"
 #include "e_keyrouter.h"
 #include "e_input_event_intern.h"
-#include "e_device_intern.h"
 #include "e_keyrouter_conf_intern.h"
 
-#define CHECK_ERR(val) if (TIZEN_KEYROUTER_ERROR_NONE != val) return;
-#define CHECK_ERR_VAL(val) if (TIZEN_KEYROUTER_ERROR_NONE != val) return val;
-#define CHECK_NULL(val) if (!val) return;
-#define CHECK_NULL_VAL(val) if (!val) return val;
-
 #define KLERR(msg, ARG...) ERR(msg, ##ARG)
 #define KLWRN(msg, ARG...) WRN(msg, ##ARG)
 #define KLINF(msg, ARG...) INF(msg, ##ARG)
@@ -20,8 +14,6 @@
 #define TIZEN_KEYROUTER_MODE_PRESSED        TIZEN_KEYROUTER_MODE_REGISTERED+1
 #define TIZEN_KEYROUTER_MODE_PICTURE_OFF        TIZEN_KEYROUTER_MODE_REGISTERED+2
 
-typedef unsigned long Time;
-
 typedef struct _E_Keyrouter E_Keyrouter;
 
 typedef enum {
index 55fc820694321d52282cdbb4d2bbaaa8f2a43075..3d1d95c7bf99e5fd30ae39d47aab2e4b3f8fd298 100644 (file)
@@ -54,7 +54,7 @@ e_keyrouter_keygrab_prepend_to_keylist(struct wl_resource *surface, struct wl_cl
    int res = TIZEN_KEYROUTER_ERROR_NONE;
 
    res = _e_keyrouter_find_duplicated_grabbed_key(surface, wc, key, mode);
-   CHECK_ERR_VAL(res);
+   if (TIZEN_KEYROUTER_ERROR_NONE != res) return res;
 
    E_Keyrouter_Key_List_NodePtr new_keyptr = E_NEW(E_Keyrouter_Key_List_Node, 1);