From b04cbe08e23f63bc02c659b69668349fce240f9e Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 21 Aug 2025 22:32:19 +0200 Subject: text-buffer: clean interface --- src/text-buffer.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/text-buffer.c') 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); -} -- cgit v1.2.3