aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 20:52:29 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 20:52:29 +0100
commitc45a436fc594101f676cfabe90225d825d935fec (patch)
treeefc036644f49fcf9243c2e083f58d3d7b1c40f84 /backend
parentd8daa3e045ca2f41edcbed533bc5a9fef1363a17 (diff)
clean up duplicated code
Diffstat (limited to 'backend')
-rw-r--r--backend/print.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/backend/print.cpp b/backend/print.cpp
index fc8ad9b..1cb6a75 100644
--- a/backend/print.cpp
+++ b/backend/print.cpp
@@ -6,23 +6,6 @@
#include "print.h"
#include "util.h"
-static String va_stringf(va_list args, const char * fmt) {
- va_list args_copy;
- va_copy(args_copy, args);
-
- size_t sz = vsnprintf(NULL, 0, fmt, args_copy) + 1;
- char * msg = (char *) malloc(sz);
- va_end(args_copy);
-
- vsnprintf(msg, sz, fmt, args);
-
- String out = msg;
- free(msg);
-
- va_end(args);
- return out;
-}
-
void lprtf(const char * fmt, ...) {
va_list args;
va_start(args, fmt);