[core] remove unused members of struct server

personal/stbuehler/ci-build
Glenn Strauss 3 years ago
parent 10d71279ae
commit 5d9bfc9a76
  1. 6
      src/base.h
  2. 6
      src/server.c

@ -390,15 +390,9 @@ struct server {
uint32_t max_conns;
/* buffers */
buffer *parse_full_path;
buffer *response_header;
buffer *response_range;
buffer *tmp_buf;
buffer *tmp_chunk_len;
buffer *empty_string; /* is necessary for cond_match */
buffer *cond_check_buf;
/* caches */

@ -232,10 +232,7 @@ static server *server_init(void) {
#define CLEAN(x) \
srv->x = buffer_init();
CLEAN(response_header);
CLEAN(parse_full_path);
CLEAN(ts_date_str);
CLEAN(response_range);
CLEAN(tmp_buf);
srv->empty_string = buffer_init_string("");
CLEAN(cond_check_buf);
@ -313,10 +310,7 @@ static void server_free(server *srv) {
#define CLEAN(x) \
buffer_free(srv->x);
CLEAN(response_header);
CLEAN(parse_full_path);
CLEAN(ts_date_str);
CLEAN(response_range);
CLEAN(tmp_buf);
CLEAN(empty_string);
CLEAN(cond_check_buf);

Loading…
Cancel
Save