From 343d0356a5292a05b82ba514aec76e1e7bc6b8be Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 11 Dec 2020 11:21:53 +0100 Subject: [PATCH] CLEANUP: connection: remove the unused conn_{stop,cond_update}_polling() 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 | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/haproxy/connection.h b/include/haproxy/connection.h index 72ba1796af..1986d3bd87 100644 --- a/include/haproxy/connection.h +++ b/include/haproxy/connection.h @@ -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. */ -- 2.47.3