aboutsummaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-02-28 07:41:00 -0700
committerRandy Palamar <randy@rnpnr.xyz>2025-02-28 07:42:39 -0700
commit05897c884af2ae3ed66f80b624f657dc898da2ae (patch)
treebf74edff7babb2ba9a534e044730eda8a0a2be1e /buffer.h
parentb68b822bd0c329a170a84ae2ca24014971b330b4 (diff)
downloadvis-05897c884af2ae3ed66f80b624f657dc898da2ae.tar.gz
vis-05897c884af2ae3ed66f80b624f657dc898da2ae.tar.xz
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.
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h2
1 files changed, 0 insertions, 2 deletions
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. */