From: Willy Tarreau Date: Fri, 10 Nov 2017 15:43:05 +0000 (+0100) Subject: CLEANUP: mux: remove the unused "release()" function X-Git-Tag: v1.8-rc3~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28b55c6fed212d0bf8f162360d1e5578c02d5ce2;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/types/connection.h b/include/types/connection.h index eb674556c2..88573b8a75 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 d06a234f6c..7fc6ec018b 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", };