diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-08-21 22:32:19 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2025-08-21 22:32:19 +0200 |
commit | b04cbe08e23f63bc02c659b69668349fce240f9e (patch) | |
tree | f75336b79f3b79144342e38918b69eb0061b4aab /src/text-buffer.c | |
parent | e45ce6f5d8e6fbfcb651dc859186ce8e4bb71e4a (diff) |
text-buffer: clean interface
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); -} |