]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: htx: Remove unused function htx_get_stline()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 May 2019 12:55:59 +0000 (14:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:12 +0000 (07:42 +0200)
include/common/htx.h

index 3a9215fac3f484574bba35f8ff9e91313f0b9d66..8875f65498a1d5aec063e65514c7a8fb0ffa01ad 100644 (file)
@@ -634,21 +634,6 @@ static inline struct ist htx_get_blk_value(const struct htx *htx, const struct h
        return ret;
 }
 
-/* Returns the HTX start-line if set, otherwise it returns NULL. */
-static inline struct htx_sl *htx_get_stline(struct htx *htx)
-{
-       struct htx_sl *sl = NULL;
-
-       if (htx->used && htx->sl_pos != -1) {
-               struct htx_blk *blk = htx_get_blk(htx, htx->sl_pos);
-
-               if (blk)
-                       sl = htx_get_blk_ptr(htx, blk);
-       }
-       return sl;
-}
-
-
 /* Removes <n> bytes from the beginning of DATA block <blk>. The block's start
  * address and its length are adjusted, and the htx's total data count is
  * updated. This is used to mark that part of some data were transfered