]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: htx: remove the unused function htx_find_blk()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 May 2019 09:13:07 +0000 (11:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:33 +0000 (07:42 +0200)
include/common/htx.h

index 25c28c8c45c05c6e58abf510205e194ece7263da..7840af672c1809b019a1d21354cf8a0a6f010b38 100644 (file)
@@ -533,26 +533,6 @@ static inline int32_t htx_find_front(const struct htx *htx)
        return front;
 }
 
-/* Returns the HTX block containing data with the <offset>, relatively to the
- * beginning of the HTX message <htx>. It returns an htx_ret. if the HTX block is
- * not found, htx_ret.blk is set to NULL. Otherwise, it points to the right HTX
- * block and htx_ret.ret is set to the remaining offset inside the block.
- */
-static inline struct htx_ret htx_find_blk(const struct htx *htx, uint32_t offset)
-{
-       int32_t pos;
-
-       for (pos = htx_get_head(htx); pos != -1; pos = htx_get_next(htx, pos)) {
-               struct htx_blk *blk = htx_get_blk(htx, pos);
-               uint32_t sz = htx_get_blksz(blk);
-
-               if (offset < sz)
-                       return (struct htx_ret){ .blk = blk, .ret = offset };
-               offset -= sz;
-       }
-
-       return (struct htx_ret){ .blk = NULL };
-}
 /* Changes the size of the value. It is the caller responsibility to change the
  * value itself, make sure there is enough space and update allocated value.
  */