mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: buffer: get rid of b_end() and b_to_end()
These ones are not used anymore.
This commit is contained in:
parent
9c7f2d19bf
commit
5d7d1bbd0e
1 changed files with 0 additions and 12 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue