MINOR: tree-wide: Only rely on co_data() to check channel emptyness
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Oct 2023 16:00:38 +0000 (18:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 16:51:13 +0000 (18:51 +0200)
commit322d660d084bc188aa6ecd34dda7083dc9dd93d6
tree83a96116842541d23b609cf158f9de73b2aa5a39
parent20c463955d4f92c5534297ccc95a39d6f035d5f6
MINOR: tree-wide: Only rely on co_data() to check channel emptyness

Because channel_is_empty() function does now only check the channel's
buffer, we can remove it and rely on co_data() instead. Of course, all tests
must be inverted.

channel_is_empty() is thus removed.
include/haproxy/channel.h
src/backend.c
src/channel.c
src/hlua.c
src/http_ana.c
src/stats.c
src/stconn.c
src/stream.c