From: Timo Sirainen Date: Tue, 27 Jun 2023 12:48:11 +0000 (+0300) Subject: lib-http: Remove unused http_client_connection.debug X-Git-Tag: 2.4.1~1455 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5c5b95bb3c4dfef7d8ff7edeb945f7f93a42b37;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Remove unused http_client_connection.debug It was set, but never read. --- diff --git a/src/lib-http/http-client-connection.c b/src/lib-http/http-client-connection.c index 76298b1eff..c0c753ac6c 100644 --- a/src/lib-http/http-client-connection.c +++ b/src/lib-http/http-client-connection.c @@ -570,7 +570,6 @@ void http_client_connection_claim_idle(struct http_client_connection *conn, http_client_connection_detach_peer(conn); conn->peer = peer; - conn->debug = peer->client->set.debug; array_push_back(&peer->conns, &conn); } } @@ -1743,7 +1742,6 @@ http_client_connection_create(struct http_client_peer *peer) conn->refcount = 1; conn->ppool = ppool; conn->peer = peer; - conn->debug = client->set.debug; if (pshared->addr.type != HTTP_CLIENT_PEER_ADDR_RAW) i_array_init(&conn->request_wait_list, 16); conn->io_wait_timer = io_wait_timer_add_to(cctx->ioloop); diff --git a/src/lib-http/http-client-private.h b/src/lib-http/http-client-private.h index 4b1247c421..7077d9b300 100644 --- a/src/lib-http/http-client-private.h +++ b/src/lib-http/http-client-private.h @@ -206,7 +206,6 @@ struct http_client_connection { bool output_locked:1; /* Output is locked; no pipelining */ bool output_broken:1; /* Output is broken; no more requests */ bool in_req_callback:1; /* Performing request callback (busy) */ - bool debug:1; }; struct http_client_peer_shared {