]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: buffer: get rid of b_end() and b_to_end()
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Jun 2018 11:47:29 +0000 (13:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:41 +0000 (16:23 +0200)
These ones are not used anymore.

include/common/buffer.h

index c9868f0a8847d8ac87e78bd10b08f9b1edc839d6..0b768f267f54b89d53e8f40c63a666ce8837fae9 100644 (file)
@@ -73,18 +73,6 @@ void buffer_dump(FILE *o, struct buffer *b, int from, int to);
                __ret;                                          \
        })
 
-/* Returns the pointer to the buffer's end (data+size) */
-static inline const char *b_end(const struct buffer *b)
-{
-       return b->data + b->size;
-}
-
-/* Returns the distance between <p> and the buffer's end (data+size) */
-static inline unsigned int b_to_end(const struct buffer *b)
-{
-       return b->data + b->size - b->p;
-}
-
 /* Return the buffer's length in bytes by summing the input and the output */
 static inline int buffer_len(const struct buffer *buf)
 {