From: Dongwoo Lee Date: Thu, 10 Mar 2022 02:57:04 +0000 (+0900) Subject: monitor: request: Remove unused request name array X-Git-Tag: accepted/tizen/unified/20220313.205607~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F272154%2F1;p=platform%2Fcore%2Fsystem%2Fpass.git monitor: request: Remove unused request name array Change-Id: Idb1b47964b08b0fefeee8f4bec4eff201c896d0e Signed-off-by: Dongwoo Lee --- diff --git a/include/util/request-handler.h b/include/util/request-handler.h index c03adef..d4e2a5f 100644 --- a/include/util/request-handler.h +++ b/include/util/request-handler.h @@ -23,8 +23,6 @@ #include -extern const char *request_type_str[]; - struct request_client { int socket_fd; int nr_resources; diff --git a/src/monitor/request-server.c b/src/monitor/request-server.c index 27a580e..c1bf04a 100644 --- a/src/monitor/request-server.c +++ b/src/monitor/request-server.c @@ -46,18 +46,6 @@ static bool g_request_server_run; -const char *request_type_str[] = { - "REQUEST_CREATE_RESOURCE", - "REQUEST_UPDATE_RESOURCE", - "REQUEST_REMOVE_RESOURCE", - "REQUEST_SET_ATTR_INTEREST", - "REQUEST_UNSET_ATTR_INTEREST", - "REQUEST_SET_RESOURCE_CONTROL", - "REQUEST_GET_VALUE_INT", - "REQUEST_GET_RESOURCE_NUM", - "REQUEST_GET_AVAILABLE_ATTRS", -}; - static int request_server_func(void *ctx, void **result) { struct sockaddr_in address;