From 5d7d1bbd0ea1c0ee2d642359d8c1357fcbb5ec8a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 15 Jun 2018 13:47:29 +0200 Subject: [PATCH] MINOR: buffer: get rid of b_end() and b_to_end() These ones are not used anymore. --- include/common/buffer.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/common/buffer.h b/include/common/buffer.h index c9868f0a8..0b768f267 100644 --- a/include/common/buffer.h +++ b/include/common/buffer.h @@ -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

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) {