util: Remove unused meta_debug_spew()

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1465
This commit is contained in:
Jonas Ådahl 2020-10-01 15:04:44 +02:00 committed by Georges Basile Stavracas Neto
parent 9a75de9309
commit 24c374ffb2
2 changed files with 0 additions and 34 deletions

View File

@ -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, ...)
{

View File

@ -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