[mutter] theme: Remove DEBUG_FILL_STRUCT



commit 3f2e86f67c04a494449c1b08c64c8dd08d823777
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Wed May 15 16:42:37 2019 -0500

    theme: Remove DEBUG_FILL_STRUCT
    
    This debug statement is actually applied all the times, while it could be useful
    for crashes analysis, these days the same can be done using `MALLOC_CHECK_` and
    `MALLOC_PERTURB_` env variables.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/581

 src/ui/theme.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index b7618d9c0..6817b5beb 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -31,8 +31,6 @@
 #include "meta/prefs.h"
 #include "ui/frames.h"
 
-#define DEBUG_FILL_STRUCT(s) memset ((s), 0xef, sizeof (*(s)))
-
 static void scale_border (GtkBorder *border, double factor);
 
 static MetaFrameLayout *
@@ -58,7 +56,6 @@ meta_frame_layout_free (MetaFrameLayout *layout)
 {
   g_return_if_fail (layout != NULL);
 
-  DEBUG_FILL_STRUCT (layout);
   g_free (layout);
 }
 
@@ -967,7 +964,6 @@ meta_theme_free (MetaTheme *theme)
     if (theme->layouts[i])
       meta_frame_layout_free (theme->layouts[i]);
 
-  DEBUG_FILL_STRUCT (theme);
   g_free (theme);
 }
 


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