[gedit/wip/improve-debug: 3/5] debug: remove unused debug sections



commit 6f48157adb0b990e5772032fd30e49794525c566
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat May 2 16:20:02 2015 +0200

    debug: remove unused debug sections
    
    As soon as GEDIT_DEBUG_PLUGINS remains at the same value, it should be
    fine to do the change.

 docs/reference/gedit-sections.txt |   10 ++--------
 gedit/gedit-debug.c               |   12 ------------
 gedit/gedit-debug.h               |   26 +++++++-------------------
 3 files changed, 9 insertions(+), 39 deletions(-)
---
diff --git a/docs/reference/gedit-sections.txt b/docs/reference/gedit-sections.txt
index 50e7817..8d123e1 100644
--- a/docs/reference/gedit-sections.txt
+++ b/docs/reference/gedit-sections.txt
@@ -326,22 +326,16 @@ gedit_window_activatable_get_type
 <FILE>gedit-debug</FILE>
 GeditDebugSection
 DEBUG_VIEW
-DEBUG_SEARCH
-DEBUG_PRINT
 DEBUG_PREFS
+DEBUG_WINDOW
+DEBUG_PANEL
 DEBUG_PLUGINS
 DEBUG_TAB
 DEBUG_DOCUMENT
 DEBUG_COMMANDS
 DEBUG_APP
-DEBUG_SESSION
 DEBUG_UTILS
 DEBUG_METADATA
-DEBUG_WINDOW
-DEBUG_LOADER
-DEBUG_SAVER
-DEBUG_PANEL
-DEBUG_DBUS
 gedit_debug_init
 gedit_debug
 gedit_debug_message
diff --git a/gedit/gedit-debug.c b/gedit/gedit-debug.c
index deee56b..b860e2d 100644
--- a/gedit/gedit-debug.c
+++ b/gedit/gedit-debug.c
@@ -62,12 +62,8 @@ gedit_debug_init (void)
 
        if (g_getenv ("GEDIT_DEBUG_VIEW") != NULL)
                debug = debug | GEDIT_DEBUG_VIEW;
-       if (g_getenv ("GEDIT_DEBUG_SEARCH") != NULL)
-               debug = debug | GEDIT_DEBUG_SEARCH;
        if (g_getenv ("GEDIT_DEBUG_PREFS") != NULL)
                debug = debug | GEDIT_DEBUG_PREFS;
-       if (g_getenv ("GEDIT_DEBUG_PRINT") != NULL)
-               debug = debug | GEDIT_DEBUG_PRINT;
        if (g_getenv ("GEDIT_DEBUG_PLUGINS") != NULL)
                debug = debug | GEDIT_DEBUG_PLUGINS;
        if (g_getenv ("GEDIT_DEBUG_TAB") != NULL)
@@ -78,22 +74,14 @@ gedit_debug_init (void)
                debug = debug | GEDIT_DEBUG_COMMANDS;
        if (g_getenv ("GEDIT_DEBUG_APP") != NULL)
                debug = debug | GEDIT_DEBUG_APP;
-       if (g_getenv ("GEDIT_DEBUG_SESSION") != NULL)
-               debug = debug | GEDIT_DEBUG_SESSION;
        if (g_getenv ("GEDIT_DEBUG_UTILS") != NULL)
                debug = debug | GEDIT_DEBUG_UTILS;
        if (g_getenv ("GEDIT_DEBUG_METADATA") != NULL)
                debug = debug | GEDIT_DEBUG_METADATA;
        if (g_getenv ("GEDIT_DEBUG_WINDOW") != NULL)
                debug = debug | GEDIT_DEBUG_WINDOW;
-       if (g_getenv ("GEDIT_DEBUG_LOADER") != NULL)
-               debug = debug | GEDIT_DEBUG_LOADER;
-       if (g_getenv ("GEDIT_DEBUG_SAVER") != NULL)
-               debug = debug | GEDIT_DEBUG_SAVER;
        if (g_getenv ("GEDIT_DEBUG_PANEL") != NULL)
                debug = debug | GEDIT_DEBUG_PANEL;
-       if (g_getenv ("GEDIT_DEBUG_DBUS") != NULL)
-               debug = debug | GEDIT_DEBUG_DBUS;
 out:
 
 #ifdef ENABLE_PROFILING
diff --git a/gedit/gedit-debug.h b/gedit/gedit-debug.h
index a8058aa..226a0ba 100644
--- a/gedit/gedit-debug.h
+++ b/gedit/gedit-debug.h
@@ -39,41 +39,29 @@
 typedef enum {
        GEDIT_NO_DEBUG       = 0,
        GEDIT_DEBUG_VIEW     = 1 << 0,
-       GEDIT_DEBUG_SEARCH   = 1 << 1,
-       GEDIT_DEBUG_PRINT    = 1 << 2,
-       GEDIT_DEBUG_PREFS    = 1 << 3,
+       GEDIT_DEBUG_PREFS    = 1 << 1,
+       GEDIT_DEBUG_WINDOW   = 1 << 2,
+       GEDIT_DEBUG_PANEL    = 1 << 3,
        GEDIT_DEBUG_PLUGINS  = 1 << 4,
        GEDIT_DEBUG_TAB      = 1 << 5,
        GEDIT_DEBUG_DOCUMENT = 1 << 6,
        GEDIT_DEBUG_COMMANDS = 1 << 7,
        GEDIT_DEBUG_APP      = 1 << 8,
-       GEDIT_DEBUG_SESSION  = 1 << 9,
-       GEDIT_DEBUG_UTILS    = 1 << 10,
-       GEDIT_DEBUG_METADATA = 1 << 11,
-       GEDIT_DEBUG_WINDOW   = 1 << 12,
-       GEDIT_DEBUG_LOADER   = 1 << 13,
-       GEDIT_DEBUG_SAVER    = 1 << 14,
-       GEDIT_DEBUG_PANEL    = 1 << 15,
-       GEDIT_DEBUG_DBUS     = 1 << 16
+       GEDIT_DEBUG_UTILS    = 1 << 9,
+       GEDIT_DEBUG_METADATA = 1 << 10,
 } GeditDebugSection;
 
 #define        DEBUG_VIEW      GEDIT_DEBUG_VIEW,    __FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_SEARCH    GEDIT_DEBUG_SEARCH,  __FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_PRINT     GEDIT_DEBUG_PRINT,   __FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_PREFS     GEDIT_DEBUG_PREFS,   __FILE__, __LINE__, G_STRFUNC
+#define        DEBUG_WINDOW    GEDIT_DEBUG_WINDOW,  __FILE__, __LINE__, G_STRFUNC
+#define        DEBUG_PANEL     GEDIT_DEBUG_PANEL,   __FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_PLUGINS   GEDIT_DEBUG_PLUGINS, __FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_TAB       GEDIT_DEBUG_TAB,     __FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_DOCUMENT  GEDIT_DEBUG_DOCUMENT,__FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_COMMANDS  GEDIT_DEBUG_COMMANDS,__FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_APP       GEDIT_DEBUG_APP,     __FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_SESSION   GEDIT_DEBUG_SESSION, __FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_UTILS     GEDIT_DEBUG_UTILS,   __FILE__, __LINE__, G_STRFUNC
 #define        DEBUG_METADATA  GEDIT_DEBUG_METADATA,__FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_WINDOW    GEDIT_DEBUG_WINDOW,  __FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_LOADER    GEDIT_DEBUG_LOADER,  __FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_SAVER     GEDIT_DEBUG_SAVER,   __FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_PANEL     GEDIT_DEBUG_PANEL,   __FILE__, __LINE__, G_STRFUNC
-#define        DEBUG_DBUS      GEDIT_DEBUG_DBUS,    __FILE__, __LINE__, G_STRFUNC
 
 void gedit_debug_init (void);
 


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