diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-02-28 07:41:00 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-02-28 07:42:39 -0700 |
| commit | 05897c884af2ae3ed66f80b624f657dc898da2ae (patch) | |
| tree | bf74edff7babb2ba9a534e044730eda8a0a2be1e /buffer.h | |
| parent | b68b822bd0c329a170a84ae2ca24014971b330b4 (diff) | |
| download | vis-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.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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. */ |
