From c08c6bba77b3980164a68d6e9a9eb9304224dbba Mon Sep 17 00:00:00 2001 From: Dongwoo Lee Date: Thu, 10 Mar 2022 11:57:04 +0900 Subject: [PATCH] monitor: request: Remove unused request name array Change-Id: Idb1b47964b08b0fefeee8f4bec4eff201c896d0e Signed-off-by: Dongwoo Lee --- include/util/request-handler.h | 2 -- src/monitor/request-server.c | 12 ------------ 2 files changed, 14 deletions(-) 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; -- 2.7.4