From 25de3f61a10db2d0ccbeb3e97d92a4a5c3558e55 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 4 Mar 2025 18:50:10 +0100 Subject: [PATCH] os: drop deprecated Xvprintf() Nobody using it anymore, so no need for keeping it around. Signed-off-by: Enrico Weigelt, metux IT consult --- include/os.h | 4 ---- os/xprintf.c | 12 ------------ 2 files changed, 16 deletions(-) diff --git a/include/os.h b/include/os.h index 1b1076036..cb1600dca 100644 --- a/include/os.h +++ b/include/os.h @@ -199,10 +199,6 @@ Xprintf(const char *fmt, ...) _X_ATTRIBUTE_PRINTF(1, 2) _X_DEPRECATED; extern _X_EXPORT char * -Xvprintf(const char *fmt, va_list va) -_X_ATTRIBUTE_PRINTF(1, 0) - _X_DEPRECATED; -extern _X_EXPORT char * XNFprintf(const char *fmt, ...) _X_ATTRIBUTE_PRINTF(1, 2) _X_DEPRECATED; diff --git a/os/xprintf.c b/os/xprintf.c index b30edf2f2..883e8c5ea 100644 --- a/os/xprintf.c +++ b/os/xprintf.c @@ -154,18 +154,6 @@ int Xscnprintf(char *s, int n, const char *format, ...) return x; } -/* Old api, now deprecated, may be removed in the future */ -char * -Xvprintf(const char *format, va_list va) -{ - char *ret; - - if (vasprintf(&ret, format, va) == -1) - ret = NULL; - - return ret; -} - char * Xprintf(const char *format, ...) {