diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-07 13:03:58 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-07 13:03:58 +0100 |
| commit | b812d77ede9b448088279d393460cfa147aa7fc6 (patch) | |
| tree | bbcdc076974a726bbff09ea7abe4fea34f7ea699 /buffer.c | |
| parent | c71760a7e1867a3d1d528811c3b5c305dfdab3d1 (diff) | |
| download | vis-b812d77ede9b448088279d393460cfa147aa7fc6.tar.gz vis-b812d77ede9b448088279d393460cfa147aa7fc6.tar.xz | |
buffer: remove redundant function
For some reason we ended up with two identical functions: buffer_{clear,terminate}.
Diffstat (limited to 'buffer.c')
| -rw-r--r-- | buffer.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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); |
