os: drop deprecated Xprintf()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-03-04 18:59:09 +01:00
parent 105d28ba52
commit e940430c2f
2 changed files with 0 additions and 19 deletions

View File

@@ -191,12 +191,6 @@ XNFstrdup(const char *s);
/* Include new X*asprintf API */
#include "Xprintf.h"
/* Older api deprecated in favor of the asprintf versions */
extern _X_EXPORT char *
Xprintf(const char *fmt, ...)
_X_ATTRIBUTE_PRINTF(1, 2)
_X_DEPRECATED;
typedef int (*OsSigWrapperPtr) (int /* sig */ );
extern _X_EXPORT OsSigWrapperPtr

View File

@@ -153,16 +153,3 @@ int Xscnprintf(char *s, int n, const char *format, ...)
va_end(ap);
return x;
}
char *
Xprintf(const char *format, ...)
{
char *ret;
va_list va;
va_start(va, format);
if (vasprintf(&ret, format, va) == -1)
ret = NULL;
va_end(va);
return ret;
}