[mutter] util: Remove now unused debug functions



commit 498248586a6375b267973fd1ff1fa90c39796ab0
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Oct 1 15:19:13 2020 +0200

    util: Remove now unused debug functions
    
    They have been replaced with using debug string parsing and topics.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1465

 src/core/util.c | 18 ------------------
 src/meta/util.h |  3 ---
 2 files changed, 21 deletions(-)
---
diff --git a/src/core/util.c b/src/core/util.c
index 4d9d8acb34..b6f31b1861 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -49,7 +49,6 @@ meta_topic_real_valist (MetaDebugTopic topic,
 #endif
 
 static gint verbose_topics = 0;
-static gboolean is_debugging = FALSE;
 static gboolean replace_current = FALSE;
 static int no_prefix = 0;
 static gboolean is_wayland_compositor = FALSE;
@@ -164,23 +163,6 @@ meta_remove_verbose_topic (MetaDebugTopic topic)
     verbose_topics &= ~topic;
 }
 
-gboolean
-meta_is_debugging (void)
-{
-  return is_debugging;
-}
-
-void
-meta_set_debugging (gboolean setting)
-{
-#ifdef WITH_VERBOSE_MODE
-  if (setting)
-    ensure_logfile ();
-#endif
-
-  is_debugging = setting;
-}
-
 gboolean
 meta_get_replace_current_wm (void)
 {
diff --git a/src/meta/util.h b/src/meta/util.h
index 77a075a7a3..6d06ea5725 100644
--- a/src/meta/util.h
+++ b/src/meta/util.h
@@ -32,9 +32,6 @@
 META_EXPORT
 gboolean meta_is_verbose  (void);
 
-META_EXPORT
-gboolean meta_is_debugging (void);
-
 META_EXPORT
 gboolean meta_is_syncing (void);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]