aboutsummaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 0 insertions, 4 deletions
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);