From a93478eab4c34a25032e58b173fede5d14fe823d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 29 Nov 2012 17:23:18 +0000 Subject: * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and xvasprintf. * common/common-utils.c (xasprintf, xvasprintf): Remove. * common/common-utils.h (xasprintf, xvasprintf): Remove. --- gdb/common/common-utils.c | 16 ---------------- gdb/common/common-utils.h | 7 ------- 2 files changed, 23 deletions(-) (limited to 'gdb/common') diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c index ad01ed6..ef5d638 100644 --- a/gdb/common/common-utils.c +++ b/gdb/common/common-utils.c @@ -137,22 +137,6 @@ xstrvprintf (const char *format, va_list ap) return ret; } -void -xasprintf (char **ret, const char *format, ...) -{ - va_list args; - - va_start (args, format); - (*ret) = xstrvprintf (format, args); - va_end (args); -} - -void -xvasprintf (char **ret, const char *format, va_list ap) -{ - (*ret) = xstrvprintf (format, ap); -} - int xsnprintf (char *str, size_t size, const char *format, ...) { diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index 030bcc5..58fa3f9 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -43,13 +43,6 @@ char *xstrprintf (const char *format, ...) ATTRIBUTE_PRINTF (1, 2); char *xstrvprintf (const char *format, va_list ap) ATTRIBUTE_PRINTF (1, 0); -/* Like asprintf/vasprintf but get an internal_error if the call - fails. */ -void xasprintf (char **ret, const char *format, ...) - ATTRIBUTE_PRINTF (2, 3); -void xvasprintf (char **ret, const char *format, va_list ap) - ATTRIBUTE_PRINTF (2, 0); - /* Like snprintf, but throw an error if the output buffer is too small. */ int xsnprintf (char *str, size_t size, const char *format, ...) ATTRIBUTE_PRINTF (3, 4); -- cgit v1.1