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:
Willy Tarreau 2026-05-11 15:30:09 +02:00
parent 827defccda
commit 4eb6e8daa3

View File

@ -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
*/