]> git.kaiwu.me - haproxy.git/commitdiff
BUILD: flt-decomp: Remove unused stream_get_decomp() function
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Aug 2026 15:33:26 +0000 (17:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Aug 2026 15:33:27 +0000 (17:33 +0200)
This unused function was left by error after refactoring. Let's remove it
now.

src/flt_decomp.c

index 76e3f6bfb1475dfde6156652682641488b45e7dd..d0989d0229eaa479f9d171676a9c3df4da64708a 100644 (file)
@@ -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 <s> 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