]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: buffers: remove b_putstr()
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Jul 2018 13:03:59 +0000 (15:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:43 +0000 (16:23 +0200)
It's not needed anymore.

include/common/buf.h

index a7bbb1f0c157fd0884ccac4ac946b930b38dcdbe..1ad00523c151d2001dd9d025394e7509b33d83be 100644 (file)
@@ -484,15 +484,6 @@ static inline size_t b_putblk(struct buffer *b, const char *blk, size_t len)
        return len;
 }
 
-/* b_putstr() : tries to copy string <str> into output data at buffer <b>.
- * Supports wrapping. Data are truncated if buffer is too short. It returns the
- * number of bytes copied.
- */
-static inline size_t b_putstr(struct buffer *b, const char *str)
-{
-       return b_putblk(b, str, strlen(str));
-}
-
 
 #endif /* _COMMON_BUF_H */