diff options
Diffstat (limited to 'src/text-buffer.c')
-rw-r--r-- | src/text-buffer.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/text-buffer.c b/src/text-buffer.c index caa1c3e..215e446 100644 --- a/src/text-buffer.c +++ b/src/text-buffer.c @@ -55,7 +55,7 @@ text_buffer_index (text_buffer *tb, size_t pos) } void -text_buffer_empty (text_buffer *tb) +text_buffer_clear (text_buffer *tb) { free (tb->contents); text_buffer_init (tb); @@ -74,10 +74,3 @@ text_buffer_fill (text_buffer *tb, char *fill, size_t size) tb->contents[i] = fill[i]; } } - -void -text_buffer_free (text_buffer *tb) -{ - free (tb->contents); - text_buffer_init (tb); -} |