From 28b55c6fed212d0bf8f162360d1e5578c02d5ce2 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 10 Nov 2017 16:43:05 +0100 Subject: [PATCH] CLEANUP: mux: remove the unused "release()" function In commit 53a4766 ("MEDIUM: connection: start to introduce a mux layer between xprt and data") we introduced a release() function which ends up never being used. Let's get rid of it now. --- include/types/connection.h | 1 - src/mux_h2.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/types/connection.h b/include/types/connection.h index eb674556c..88573b8a7 100644 --- a/include/types/connection.h +++ b/include/types/connection.h @@ -296,7 +296,6 @@ struct mux_ops { void (*shutr)(struct conn_stream *cs, enum cs_shr_mode); /* shutr function */ void (*shutw)(struct conn_stream *cs, enum cs_shw_mode); /* shutw function */ - void (*release)(struct connection *conn); /* release all resources allocated by the mux */ struct conn_stream *(*attach)(struct connection *); /* Create and attach a conn_stream to an outgoing connection */ void (*detach)(struct conn_stream *); /* Detach a conn_stream from an outgoing connection, when the request is done */ char name[8]; /* mux layer name, zero-terminated */ diff --git a/src/mux_h2.c b/src/mux_h2.c index d06a234f6..7fc6ec018 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -3170,7 +3170,6 @@ const struct mux_ops h2_ops = { .detach = h2_detach, .shutr = h2_shutr, .shutw = h2_shutw, - .release = h2_release, .name = "H2", };