]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-connection - Drop the connection ID.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 27 Feb 2019 20:59:08 +0000 (21:59 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 1 Mar 2019 23:56:58 +0000 (00:56 +0100)
This is now unused.

src/lib-smtp/smtp-server-connection.c
src/lib-smtp/smtp-server-private.h

index 02d55c5927c6ae2354437f4a8eef47833f31da79..5aab00c35c788ee8142eb0e15768eed08afbe6bd 100644 (file)
@@ -811,7 +811,6 @@ smtp_server_connection_alloc(struct smtp_server *server,
                             const struct smtp_server_callbacks *callbacks,
                             void *context)
 {
-       static unsigned int id = 0;
        struct smtp_server_connection *conn;
        pool_t pool;
 
@@ -819,7 +818,6 @@ smtp_server_connection_alloc(struct smtp_server *server,
        conn = p_new(pool, struct smtp_server_connection, 1);
        conn->pool = pool;
        conn->refcount = 1;
-       conn->id = id++;
        conn->server = server;
        conn->callbacks = callbacks;
        conn->context = context;
index 6f1432cab997124da9f36c57c214d6c2a14ee98f..e9d886445a3151a7a37e654f4277d8a8e138ea81 100644 (file)
@@ -157,7 +157,6 @@ struct smtp_server_connection {
 
        struct smtp_server_helo_data helo, *pending_helo;
        char *helo_domain, *username;
-       unsigned int id;
 
        struct timeout *to_idle;
        struct istream *raw_input;