mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
CLEANUP: fd: remove the now unused fd_compute_new_polled_status() function
It's not used anymore since the new state is calculated on the fly during every update. Let's remove this function.
This commit is contained in:
parent
d4daeac7f1
commit
1b76a6d1a6
1 changed files with 0 additions and 22 deletions
|
|
@ -311,28 +311,6 @@ static inline void fd_release_cache_entry(int fd)
|
|||
fd_rm_from_fd_list(&fd_cache, fd);
|
||||
}
|
||||
|
||||
/* Computes the new polled status based on the active and ready statuses, for
|
||||
* each direction. This is meant to be used by pollers while processing updates.
|
||||
*/
|
||||
static inline int fd_compute_new_polled_status(int state)
|
||||
{
|
||||
if (state & FD_EV_ACTIVE_R) {
|
||||
if (!(state & FD_EV_READY_R))
|
||||
state |= FD_EV_POLLED_R;
|
||||
}
|
||||
else
|
||||
state &= ~FD_EV_POLLED_R;
|
||||
|
||||
if (state & FD_EV_ACTIVE_W) {
|
||||
if (!(state & FD_EV_READY_W))
|
||||
state |= FD_EV_POLLED_W;
|
||||
}
|
||||
else
|
||||
state &= ~FD_EV_POLLED_W;
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
/* This function automatically enables/disables caching for an entry depending
|
||||
* on its state. It is only called on state changes.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue