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. --- test/core/buffer-test.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'test/core') diff --git a/test/core/buffer-test.c b/test/core/buffer-test.c index 269f792..f3b2dad 100644 --- a/test/core/buffer-test.c +++ b/test/core/buffer-test.c @@ -57,14 +57,6 @@ int main(int argc, char *argv[]) { buf.len = 0; skip_if(TIS_INTERPRETER, 1, "vsnprintf not supported") { - - ok(buffer_printf(&buf, "Test: %d\n", 42) && compare0(&buf, "Test: 42\n"), "Set formatted"); - ok(buffer_printf(&buf, "%d\n", 42) && compare0(&buf, "42\n"), "Set formatted overwrite"); - buf.len = 0; - - ok(buffer_printf(&buf, "%s", "") && compare0(&buf, ""), "Set formatted empty string"); - buf.len = 0; - bool append = true; for (int i = 1; i <= 10; i++) append &= buffer_appendf(&buf, "%d", i); -- cgit v1.2.3