From 269c737feef80812f38e43d2d9be28c16ac74f6d Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 28 Aug 2026 17:33:26 +0200 Subject: [PATCH] BUILD: flt-decomp: Remove unused stream_get_decomp() function This unused function was left by error after refactoring. Let's remove it now. --- src/flt_decomp.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/flt_decomp.c b/src/flt_decomp.c index 76e3f6bfb..d0989d022 100644 --- a/src/flt_decomp.c +++ b/src/flt_decomp.c @@ -422,31 +422,6 @@ static int decomp_stream_blk(struct stream *s, struct filter *f, struct channel return -1; } -/* Returns decompression options to be used for stream. Only - * call this function when you know for sure that decompression filter - * was declared on the proxy. - * This function will never return NULL. - */ -static inline struct decomp *stream_get_decomp(struct stream *s) -{ - struct decomp *decomp; - - /* we consider be decompression options in over frontend ones - * unless it is not set at all on the be - */ - if (s->be->decomp && s->be->decomp->res.algos != NULL) - decomp = s->be->decomp; - else - decomp = strm_fe(s)->decomp; - - /* we end up there via a filter callback in decompression context, thus - * we are not supposed to be called w/o decomp options allocated. - */ - BUG_ON(decomp == NULL); - - return decomp; -} - /* checks the input HTTP headers to guess if the body is compressed and if we * support the encoding used. Then if we enabled decompression, add relevant * headers to stream the body in chunked mode since we don't know what will -- 2.47.3