mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-15 02:06:09 +02: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
@ -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…
x
Reference in New Issue
Block a user