From: William Lallemand Date: Thu, 24 Feb 2022 16:15:06 +0000 (+0100) Subject: CLEANUP: htx: remove unused co_htx_remove_blk() X-Git-Tag: v2.5.5~5 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=a078552ece55658224f9d2bb847c526882770ef1;p=haproxy-2.5.git CLEANUP: htx: remove unused co_htx_remove_blk() Remove the unused co_htx_remove_blk(), this function was confusing because you need to check the output size from the caller anyway. (cherry picked from commit f5ba296ec8441d5aca838d1e6abdeb8dec125892) Signed-off-by: Christopher Faulet --- diff --git a/include/haproxy/channel.h b/include/haproxy/channel.h index 07127bd..0602a1b 100644 --- a/include/haproxy/channel.h +++ b/include/haproxy/channel.h @@ -999,19 +999,6 @@ static inline int co_getchr(struct channel *chn) return *co_head(chn); } -/* Remove a block in a structure which is used by a channel - * Update the channel output according to the size of the block removed - * Return the size of the removed block*/ -static inline int32_t co_htx_remove_blk(struct channel *chn, struct htx *htx, struct htx_blk *blk) -{ - int32_t size = htx_get_blksz(blk); - - htx_remove_blk(htx, blk); - co_set_data(chn, co_data(chn) - size); - - return size; -} - #endif /* _HAPROXY_CHANNEL_H */ /*