From cb8cd2c51858db75cb3a280b8fefd380c99c4d44 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 10 Jan 2025 12:38:58 -0800 Subject: http: drop unused internal functions --- src/supplemental/http/http_msg.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'src/supplemental') diff --git a/src/supplemental/http/http_msg.c b/src/supplemental/http/http_msg.c index 988bb37e..fbe73e4c 100644 --- a/src/supplemental/http/http_msg.c +++ b/src/supplemental/http/http_msg.c @@ -83,39 +83,6 @@ nni_http_res_reset(nni_http_res *res) res->code = 0; } -static int -http_del_header(nni_list *hdrs, const char *key) -{ - http_header *h; - NNI_LIST_FOREACH (hdrs, h) { - if (nni_strcasecmp(key, h->name) == 0) { - nni_http_free_header(h); - return (0); - } - } - return (NNG_ENOENT); -} - -int -nni_http_req_del_header(nni_http_req *req, const char *key) -{ - int rv = NNG_ENOENT; - while (http_del_header(&req->data.hdrs, key) == 0) { - rv = 0; - } - return (rv); -} - -int -nni_http_res_del_header(nni_http_res *res, const char *key) -{ - int rv = NNG_ENOENT; - while (http_del_header(&res->data.hdrs, key) == 0) { - rv = 0; - } - return (rv); -} - // http_entity_set_data sets the entity, but does not update the // content-length header. static void -- cgit v1.2.3-70-g09d2