mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 03:33:36 -04:00
CLEANUP: channel: remove bogus and unused definition of channel_empty()
The function was mistakenly checking chn->flags instead of chn_strm(chn)->flags, and is not used. Better drop it before someone attempts to use it.
This commit is contained in:
parent
827defccda
commit
4eb6e8daa3
1 changed files with 0 additions and 6 deletions
|
|
@ -816,12 +816,6 @@ static inline size_t channel_input_data(const struct channel *chn)
|
|||
return channel_data(chn) - co_data(chn);
|
||||
}
|
||||
|
||||
/* Returns 1 if the channel is empty, taking the HTX streams into account */
|
||||
static inline size_t channel_empty(const struct channel *chn)
|
||||
{
|
||||
return (IS_HTX_STRM(chn) ? htx_is_empty(htxbuf(&chn->buf)) : c_empty(chn));
|
||||
}
|
||||
|
||||
/* Check channel's last_read date against the idle timeer to verify the producer
|
||||
* is still streaming data or not
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue