Browse Source

[core] remove unused get_http_status_body_name()

personal/stbuehler/fix-fdevent
Glenn Strauss 4 years ago
parent
commit
fb5a33ffe9
  1. 19
      src/http_kv.c
  2. 1
      src/http_kv.h

19
src/http_kv.c

@ -112,21 +112,6 @@ static const keyvalue http_status[] = {
{ -1, NULL }
};
static const keyvalue http_status_body[] = {
{ 400, "400.html" },
{ 401, "401.html" },
{ 403, "403.html" },
{ 404, "404.html" },
{ 411, "411.html" },
{ 416, "416.html" },
{ 500, "500.html" },
{ 501, "501.html" },
{ 503, "503.html" },
{ 505, "505.html" },
{ -1, NULL }
};
static const char *keyvalue_get_value(const keyvalue *kv, int k) {
int i;
@ -157,10 +142,6 @@ const char *get_http_method_name(http_method_t i) {
return keyvalue_get_value(http_methods, i);
}
const char *get_http_status_body_name(int i) {
return keyvalue_get_value(http_status_body, i);
}
int get_http_version_key(const char *s) {
return keyvalue_get_key(http_versions, s);
}

1
src/http_kv.h

@ -59,7 +59,6 @@ typedef enum { HTTP_VERSION_UNSET = -1, HTTP_VERSION_1_0, HTTP_VERSION_1_1 } htt
const char *get_http_status_name(int i);
const char *get_http_version_name(int i);
const char *get_http_method_name(http_method_t i);
const char *get_http_status_body_name(int i);
int get_http_version_key(const char *s);
http_method_t get_http_method_key(const char *s);

Loading…
Cancel
Save