]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 14 Nov 2018 11:44:16 +0000 (13:44 +0200)
connection_client_connected() can only be called for clients. There was
already an assert for it.

src/lib/connection.c

index a934a8236c3b30f38cdbbd3ab7882890627e1f6e..9b4c0bc3de2fb37be0c7fef070f20823f14011a1 100644 (file)
@@ -198,11 +198,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);