]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: connection: remove the unused conn_sock_shutw_pending()
authorWilly Tarreau <w@1wt.eu>
Wed, 30 Aug 2017 05:44:03 +0000 (07:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Aug 2017 06:18:53 +0000 (08:18 +0200)
This has never been used anywhere.

include/proto/connection.h

index 3a31fa385d5e2f71709e9696856fea1ad3c0bc2c..8c0301c1861d8db32c71c364ddcb53a5b1db73fa 100644 (file)
@@ -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 <proto> and transport <xprt>.
  * The transport's context is initialized as well.
  */