diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-10 12:38:58 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-10 13:57:42 -0800 |
| commit | cb8cd2c51858db75cb3a280b8fefd380c99c4d44 (patch) | |
| tree | 769936ec8d0f861a4a30ab845350a2e6b873e14f /src | |
| parent | 0274024abf87c3bc9fc81bafe5bd2a4391192705 (diff) | |
| download | nng-cb8cd2c51858db75cb3a280b8fefd380c99c4d44.tar.gz nng-cb8cd2c51858db75cb3a280b8fefd380c99c4d44.tar.bz2 nng-cb8cd2c51858db75cb3a280b8fefd380c99c4d44.zip | |
http: drop unused internal functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/supplemental/http/http_msg.c | 33 |
1 files changed, 0 insertions, 33 deletions
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 |
