From 2e8623a62b94cd0838dbe4efe69aee109ca3c35a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Jan 2025 16:24:52 -0800 Subject: [PATCH] net: lib: http_server: Remove unused function Building with clang warns: subsys/net/lib/http/http_hpack.c:21:20: error: unused function 'http_hpack_key_is_dynamic' [-Werror,-Wunused-function] static inline bool http_hpack_key_is_dynamic(uint32_t key) ^ Signed-off-by: Tom Hughes --- subsys/net/lib/http/http_hpack.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/subsys/net/lib/http/http_hpack.c b/subsys/net/lib/http/http_hpack.c index 5fdc7e4004df..4df4de0f7499 100644 --- a/subsys/net/lib/http/http_hpack.c +++ b/subsys/net/lib/http/http_hpack.c @@ -18,11 +18,6 @@ static inline bool http_hpack_key_is_static(uint32_t key) return key > HTTP_SERVER_HPACK_INVALID && key <= HTTP_SERVER_HPACK_WWW_AUTHENTICATE; } -static inline bool http_hpack_key_is_dynamic(uint32_t key) -{ - return key > HTTP_SERVER_HPACK_WWW_AUTHENTICATE; -} - struct hpack_table_entry { const char *name; const char *value;