]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Remove unused http_client_connection.debug
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 27 Jun 2023 12:48:11 +0000 (15:48 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:09 +0000 (12:34 +0200)
It was set, but never read.

src/lib-http/http-client-connection.c
src/lib-http/http-client-private.h

index 76298b1effe26f3153ed6c3973d1e49ce1459369..c0c753ac6cae720d95a6a976d526bcc3f63c2a90 100644 (file)
@@ -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);
index 4b1247c421dca9c0959e28d8252744c701b014ec..7077d9b300905a8405aa7e7124877c5954d1e930 100644 (file)
@@ -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 {