]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: h2: Remove unused labels from mux_h2.c
authorTim Duesterhus <tim@bastelstu.be>
Mon, 19 Feb 2018 23:49:45 +0000 (00:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Feb 2018 07:30:13 +0000 (08:30 +0100)
This removes the unused next_header_block and try_again labels
from mux_h2.c.

try_again is unused as of a76e4c21839cafd036fbe755416569206502c1d9,
which first appeared in haproxy 1.8.0.
next_header_block is unused as of 872855998bd03d5224e0e5cd6aef9b91e2a6de1d,
which was backported to haproxy 1.8.0 as
59fcb216085a7aa9744cffe39567c80de4ebd6bf.

src/mux_h2.c

index 6c63b86125922cf823dc924982d1f0092f20f3ac..9b42d7bbe13eb455ec7226b6e5d4a52e27fd03d1 100644 (file)
@@ -2913,7 +2913,6 @@ static int h2s_frt_make_resp_headers(struct h2s *h2s, struct buffer *buf)
         * block does not wrap and we can safely read it this way without
         * having to realign the buffer.
         */
- next_header_block:
        ret = h1_headers_to_hdr_list(bo_ptr(buf), bo_ptr(buf) + buf->o,
                                     list, sizeof(list)/sizeof(list[0]), h1m);
        if (ret <= 0) {
@@ -2932,7 +2931,6 @@ static int h2s_frt_make_resp_headers(struct h2s *h2s, struct buffer *buf)
 
        chunk_reset(&outbuf);
 
- try_again:
        while (1) {
                outbuf.str  = bo_end(h2c->mbuf);
                outbuf.size = bo_contig_space(h2c->mbuf);