From: Timo Sirainen Date: Mon, 27 Aug 2018 07:33:54 +0000 (+0300) Subject: lib: connection - Remove dead code X-Git-Tag: 2.3.9~1499 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1034b39e2b1d79a7f8d28d3b66a4f30c9299325;p=thirdparty%2Fdovecot%2Fcore.git lib: connection - Remove dead code connection_client_connected() can only be called for clients. There was already an assert for it. --- diff --git a/src/lib/connection.c b/src/lib/connection.c index 044ef5e017..990d87f56e 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -199,11 +199,8 @@ void connection_streams_changed(struct connection *conn) static void connection_client_connected(struct connection *conn, bool success) { - const char *ename = conn->list->set.client ? - "server_connection_connected" : - "client_connection_connected"; struct event_passthrough *e = event_create_passthrough(conn->event)-> - set_name(ename); + set_name("server_connection_connected"); i_assert(conn->list->set.client);