]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: connection: remove the unused conn_{stop,cond_update}_polling()
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 10:21:53 +0000 (11:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 10:21:53 +0000 (11:21 +0100)
These functions are not used anymore and were quite confusing given that
their names reflected their original role and not the current ones. Let's
kill them before they inspire anyone.

include/haproxy/connection.h

index 72ba1796af885d0ec459fe9141631a1f6c0a5eae..1986d3bd8762f2eee7c430ee490b4b59d9e1feb9 100644 (file)
@@ -170,22 +170,6 @@ static inline void conn_stop_tracking(struct connection *conn)
        conn->flags &= ~CO_FL_XPRT_TRACKED;
 }
 
-/* Stop all polling on the fd. This might be used when an error is encountered
- * for example.
- */
-static inline void conn_stop_polling(struct connection *c)
-{
-       if (conn_ctrl_ready(c))
-               fd_stop_both(c->handle.fd);
-}
-
-/* Stops polling in case of error on the connection. */
-static inline void conn_cond_update_polling(struct connection *c)
-{
-       if (unlikely(c->flags & CO_FL_ERROR))
-               conn_stop_polling(c);
-}
-
 /* read shutdown, called from the rcv_buf/rcv_pipe handlers when
  * detecting an end of connection.
  */