Skip to content

Commit

Permalink
net: lib: http_server: Remove unused function
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thughes committed Feb 7, 2025
1 parent a85eb14 commit 2e8623a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions subsys/net/lib/http/http_hpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e8623a

Please sign in to comment.