From: Marc-André Lureau <marcandre.lur...@redhat.com> Not needed outside monitor.c. Remove the needless stub.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- include/monitor/monitor.h | 1 - monitor/monitor.c | 3 ++- stubs/error-printf.c | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index a4b40e8391db..44653e195b45 100644 --- a/include/monitor/monitor.h +++ b/include/monitor/monitor.h @@ -56,7 +56,6 @@ void monitor_register_hmp(const char *name, bool info, void monitor_register_hmp_info_hrt(const char *name, HumanReadableText *(*handler)(Error **errp)); -int error_vprintf_unless_qmp(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0); int error_printf_unless_qmp(const char *fmt, ...) G_GNUC_PRINTF(1, 2); #endif /* MONITOR_H */ diff --git a/monitor/monitor.c b/monitor/monitor.c index 86949024f643..ba4c1716a48a 100644 --- a/monitor/monitor.c +++ b/monitor/monitor.c @@ -273,7 +273,8 @@ int error_vprintf(const char *fmt, va_list ap) return vfprintf(stderr, fmt, ap); } -int error_vprintf_unless_qmp(const char *fmt, va_list ap) +G_GNUC_PRINTF(1, 0) +static int error_vprintf_unless_qmp(const char *fmt, va_list ap) { Monitor *cur_mon = monitor_cur(); diff --git a/stubs/error-printf.c b/stubs/error-printf.c index 0e326d801059..1afa0f62ca26 100644 --- a/stubs/error-printf.c +++ b/stubs/error-printf.c @@ -16,8 +16,3 @@ int error_vprintf(const char *fmt, va_list ap) } return vfprintf(stderr, fmt, ap); } - -int error_vprintf_unless_qmp(const char *fmt, va_list ap) -{ - return error_vprintf(fmt, ap); -} -- 2.37.0.rc0