]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux: remove the unused "release()" function
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Nov 2017 15:43:05 +0000 (16:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Nov 2017 15:43:05 +0000 (16:43 +0100)
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
src/mux_h2.c

index eb674556c23695568fefe89e6544b0a07287bfbc..88573b8a75e0984d11a8cc452ba368a9ea427739 100644 (file)
@@ -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 */
index d06a234f6cf653ae2a363863006eaa5999726d88..7fc6ec018b9c5826d29302e6d4c126e83ccadcd6 100644 (file)
@@ -3170,7 +3170,6 @@ const struct mux_ops h2_ops = {
        .detach = h2_detach,
        .shutr = h2_shutr,
        .shutw = h2_shutw,
-       .release = h2_release,
        .name = "H2",
 };