From 862c33fe0814ab7756aabcf55aa77fa9c3bd6ef2 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Fri, 28 Feb 2025 08:20:22 -0700 Subject: buffer: remove more unused exposed functions NOTE: buffer-test.c now directly includes buffer.c so that it can continue to test functions which are defined as static/internal to buffer.c --- buffer.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'buffer.h') diff --git a/buffer.h b/buffer.h index ff20fa5..1c30a0e 100644 --- a/buffer.h +++ b/buffer.h @@ -34,18 +34,12 @@ bool buffer_put(Buffer*, const void *data, size_t len); bool buffer_put0(Buffer*, const char *data); /** Remove ``len`` bytes starting at ``pos``. */ bool buffer_remove(Buffer*, size_t pos, size_t len); -/** Insert ``len`` bytes of ``data`` at ``pos``. */ -bool buffer_insert(Buffer*, size_t pos, const void *data, size_t len); /** Insert NUL-terminated data at pos. */ bool buffer_insert0(Buffer*, size_t pos, const char *data); /** Append further content to the end. */ bool buffer_append(Buffer*, const void *data, size_t len); /** Append NUL-terminated data. */ bool buffer_append0(Buffer*, const char *data); -/** Insert ``len`` bytes of ``data`` at the start. */ -bool buffer_prepend(Buffer*, const void *data, size_t len); -/** Insert NUL-terminated data at the start. */ -bool buffer_prepend0(Buffer*, const char *data); /** Append formatted buffer content, ensures NUL termination on success. */ bool buffer_appendf(Buffer*, const char *fmt, ...) __attribute__((format(printf, 2, 3))); /** Return length of a buffer without trailing NUL byte. */ -- cgit v1.2.3