]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: htx: remove unused co_htx_remove_blk()
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 24 Feb 2022 16:15:06 +0000 (17:15 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 14 Mar 2022 14:10:12 +0000 (15:10 +0100)
Remove the unused co_htx_remove_blk(), this function was confusing
because you need to check the output size from the caller anyway.

include/haproxy/channel.h

index 6829cbb1e486d62ae44a7ecbe370356cdf8799c6..873ce2ac2551488659211f2c4ee0a7cd9bca513b 100644 (file)
@@ -1006,19 +1006,6 @@ static inline int co_getchr(struct channel *chn)
        return *co_head(chn);
 }
 
-/* Remove a block <blk> in a <htx> structure which is used by a channel <chn>
- * 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);
-       c_rew(chn, size);
-
-       return size;
-}
-
 #endif /* _HAPROXY_CHANNEL_H */
 
 /*