From: Willy Tarreau Date: Wed, 30 Aug 2017 05:44:03 +0000 (+0200) Subject: CLEANUP: connection: remove the unused conn_sock_shutw_pending() X-Git-Tag: v1.8-dev3~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cde5651c4d03c718f3036a69ef51b8384f2b93ba;p=thirdparty%2Fhaproxy.git CLEANUP: connection: remove the unused conn_sock_shutw_pending() This has never been used anywhere. --- diff --git a/include/proto/connection.h b/include/proto/connection.h index 3a31fa385d..8c0301c186 100644 --- a/include/proto/connection.h +++ b/include/proto/connection.h @@ -462,12 +462,6 @@ static inline int conn_data_read0_pending(struct connection *c) return (c->flags & CO_FL_SOCK_RD_SH) != 0; } -/* detect data->sock shutw transition */ -static inline int conn_sock_shutw_pending(struct connection *c) -{ - return (c->flags & (CO_FL_DATA_WR_SH | CO_FL_SOCK_WR_SH)) == CO_FL_DATA_WR_SH; -} - /* prepares a connection to work with protocol and transport . * The transport's context is initialized as well. */