]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection - Remove dead code
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Aug 2018 07:33:54 +0000 (10:33 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 29 Aug 2018 17:42:35 +0000 (17:42 +0000)
connection_client_connected() can only be called for clients. There was
already an assert for it.

src/lib/connection.c

index 044ef5e017b81633535e27776ae5d772fd405ce5..990d87f56e2a62e9e9bb03f0eb465b5fe91fbeee 100644 (file)
@@ -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);