mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-07 03:48:46 +00:00
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.
This commit is contained in:
parent
8b250ba738
commit
343d0356a5
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user