diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-12-27 18:49:30 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-01-19 13:21:12 -0500 |
commit | 64b40c65ae8de5c9d019604e4a4a4d3a7f21182a (patch) | |
tree | 40525732fafc806b7ac9626802eba843d2f57940 /gtk | |
parent | 4cfcca7997c3f91a5a020882d0ad2ba69b3259bd (diff) | |
download | gtk+-64b40c65ae8de5c9d019604e4a4a4d3a7f21182a.tar.gz |
Drop the --gtk-debug and --gtk-no-debug options
We have environment variables that cover this.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmain.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 69b5c9ccf5..c125a53dc1 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -397,37 +397,7 @@ gtk_disable_setlocale (void) static GString *gtk_modules_string = NULL; -#ifdef G_ENABLE_DEBUG -static gboolean -gtk_arg_debug_cb (const char *key, const char *value, gpointer user_data) -{ - debug_flags[0].flags |= g_parse_debug_string (value, - gtk_debug_keys, - G_N_ELEMENTS (gtk_debug_keys)); - - return TRUE; -} - -static gboolean -gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data) -{ - debug_flags[0].flags &= ~g_parse_debug_string (value, - gtk_debug_keys, - G_N_ELEMENTS (gtk_debug_keys)); - - return TRUE; -} -#endif /* G_ENABLE_DEBUG */ - static const GOptionEntry gtk_args[] = { -#ifdef G_ENABLE_DEBUG - { "gtk-debug", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_debug_cb, - /* Description of --gtk-debug=FLAGS in --help output */ N_("GTK+ debugging flags to set"), - /* Placeholder in --gtk-debug=FLAGS in --help output */ N_("FLAGS") }, - { "gtk-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_no_debug_cb, - /* Description of --gtk-no-debug=FLAGS in --help output */ N_("GTK+ debugging flags to unset"), - /* Placeholder in --gtk-no-debug=FLAGS in --help output */ N_("FLAGS") }, -#endif { NULL } }; |