From 24c374ffb233b0db52ab879a0da8fb356ef3d65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 1 Oct 2020 15:04:44 +0200 Subject: [PATCH] util: Remove unused meta_debug_spew() https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1465 --- src/core/util.c | 27 --------------------------- src/meta/util.h | 7 ------- 2 files changed, 34 deletions(-) diff --git a/src/core/util.c b/src/core/util.c index f16cf7ed3..2b3dc286c 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -239,33 +239,6 @@ utf8_fputs (const char *str, } #ifdef WITH_VERBOSE_MODE -void -meta_debug_spew_real (const char *format, ...) -{ - va_list args; - gchar *str; - FILE *out; - - g_return_if_fail (format != NULL); - - if (!is_debugging) - return; - - va_start (args, format); - str = g_strdup_vprintf (format, args); - va_end (args); - - out = logfile ? logfile : stderr; - - if (no_prefix == 0) - utf8_fputs ("Window manager: ", out); - utf8_fputs (str, out); - - fflush (out); - - g_free (str); -} - void meta_verbose_real (const char *format, ...) { diff --git a/src/meta/util.h b/src/meta/util.h index 94b320dae..77a075a7a 100644 --- a/src/meta/util.h +++ b/src/meta/util.h @@ -41,10 +41,6 @@ gboolean meta_is_syncing (void); META_EXPORT gboolean meta_is_wayland_compositor (void); -META_EXPORT -void meta_debug_spew_real (const char *format, - ...) G_GNUC_PRINTF (1, 2); - META_EXPORT void meta_verbose_real (const char *format, ...) G_GNUC_PRINTF (1, 2); @@ -169,18 +165,15 @@ GPid meta_show_dialog (const char *type, /* To disable verbose mode, we make these functions into no-ops */ #ifdef WITH_VERBOSE_MODE -#define meta_debug_spew meta_debug_spew_real #define meta_verbose meta_verbose_real #define meta_topic meta_topic_real #else # ifdef G_HAVE_ISO_VARARGS -# define meta_debug_spew(...) # define meta_verbose(...) # define meta_topic(...) # elif defined(G_HAVE_GNUC_VARARGS) -# define meta_debug_spew(format...) # define meta_verbose(format...) # define meta_topic(format...) # else