os: drop deprecated Xprintf()

Not used anymore.

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 b63b1e60c7
commit 1cf7b33ab4
2 changed files with 0 additions and 19 deletions

View File

@ -193,12 +193,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;
}