diff --git a/src/http_kv.c b/src/http_kv.c index 6e7ff8e2..7af3c055 100644 --- a/src/http_kv.c +++ b/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); } diff --git a/src/http_kv.h b/src/http_kv.h index 9efb83d3..23d7094c 100644 --- a/src/http_kv.h +++ b/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);