From b812d77ede9b448088279d393460cfa147aa7fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 7 Jan 2017 13:03:58 +0100 Subject: buffer: remove redundant function For some reason we ended up with two identical functions: buffer_{clear,terminate}. --- buffer.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'buffer.c') diff --git a/buffer.c b/buffer.c index 1304098..1276cae 100644 --- a/buffer.c +++ b/buffer.c @@ -29,10 +29,6 @@ bool buffer_grow(Buffer *buf, size_t size) { return true; } -void buffer_truncate(Buffer *buf) { - buf->len = 0; -} - bool buffer_terminate(Buffer *buf) { return !buf->data || buf->len == 0 || buf->data[buf->len-1] == '\0' || buffer_append(buf, "\0", 1); -- cgit v1.2.3