diff --git a/include/os.h b/include/os.h index 98716fe99..6d32ac7c5 100644 --- a/include/os.h +++ b/include/os.h @@ -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 diff --git a/os/xprintf.c b/os/xprintf.c index 0a4c1f49f..9c31299ce 100644 --- a/os/xprintf.c +++ b/os/xprintf.c @@ -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; -}