]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: htx: Remove the unsued function htx_add_blk_type_size()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 20 Jun 2019 13:22:51 +0000 (15:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
include/common/htx.h
src/htx.c

index 27f0e5e64a78dcf09db6f9c337051ead4230f82d..ba6604b27bd151279a264c5bc490288bb1a0fce3 100644 (file)
@@ -243,7 +243,6 @@ struct htx_blk *htx_replace_header(struct htx *htx, struct htx_blk *blk,
 
 struct htx_blk *htx_add_header(struct htx *htx, const struct ist name, const struct ist value);
 struct htx_blk *htx_add_trailer(struct htx *htx, const struct ist name, const struct ist value);
-struct htx_blk *htx_add_blk_type_size(struct htx *htx, enum htx_blk_type type, uint32_t blksz);
 struct htx_blk *htx_add_all_headers(struct htx *htx, const struct http_hdr *hdrs);
 struct htx_blk *htx_add_all_trailers(struct htx *htx, const struct http_hdr *hdrs);
 struct htx_blk *htx_add_endof(struct htx *htx, enum htx_blk_type type);
index c29a66d78416f805e419d9bab708f883125f830f..bdd10bad8744293a6bd1d877da800b61b85441cc 100644 (file)
--- a/src/htx.c
+++ b/src/htx.c
@@ -874,22 +874,6 @@ struct htx_blk *htx_add_trailer(struct htx *htx, const struct ist name,
        return blk;
 }
 
-/* Adds an HTX block of type <type> in <htx>, of size <blksz>. It returns the
- * new block on success. Otherwise, it returns NULL. The caller is responsible
- * for filling the block itself.
- */
-struct htx_blk *htx_add_blk_type_size(struct htx *htx, enum htx_blk_type type, uint32_t blksz)
-{
-       struct htx_blk *blk;
-
-       blk = htx_add_blk(htx, type, blksz);
-       if (!blk)
-               return NULL;
-
-       blk->info += blksz;
-       return blk;
-}
-
 /* Add all headers from the list <hdrs> into the HTX message <htx>, followed by
  * the EOH. On sucess, it returns the last block inserted (the EOH), otherwise
  * NULL is returned. */