From 05897c884af2ae3ed66f80b624f657dc898da2ae Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Fri, 28 Feb 2025 07:41:00 -0700 Subject: buffer: remove buffer_printf There was only a single user of this function because buffer_appendf is significantly more useful. Change that caller and reduce the code. --- buffer.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'buffer.h') diff --git a/buffer.h b/buffer.h index 6920468..ff20fa5 100644 --- a/buffer.h +++ b/buffer.h @@ -46,8 +46,6 @@ bool buffer_append0(Buffer*, const char *data); bool buffer_prepend(Buffer*, const void *data, size_t len); /** Insert NUL-terminated data at the start. */ bool buffer_prepend0(Buffer*, const char *data); -/** Set formatted buffer content, ensures NUL termination on success. */ -bool buffer_printf(Buffer*, const char *fmt, ...) __attribute__((format(printf, 2, 3))); /** 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