[gtk/debug-envvars-cleanup: 14/14] gtk: Remove old debug macros
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/debug-envvars-cleanup: 14/14] gtk: Remove old debug macros
- Date: Fri, 23 Sep 2022 22:52:25 +0000 (UTC)
commit 52b6dbf2b44059962d919a355bed1201cb63f532
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 23 18:51:46 2022 -0400
gtk: Remove old debug macros
These are no longer used.
gtk/gtkdebug.h | 5 -----
gtk/gtkprivate.h | 6 ------
2 files changed, 11 deletions(-)
---
diff --git a/gtk/gtkdebug.h b/gtk/gtkdebug.h
index a5b8eff2d1..f65c1e76de 100644
--- a/gtk/gtkdebug.h
+++ b/gtk/gtkdebug.h
@@ -89,14 +89,9 @@ typedef enum {
#define GTK_DEBUG_CHECK(type) G_UNLIKELY (gtk_get_debug_flags () & GTK_DEBUG_##type)
-#define GTK_NOTE(type,action) G_STMT_START { \
- if (GTK_DEBUG_CHECK (type)) \
- { action; }; } G_STMT_END
-
#else /* !G_ENABLE_DEBUG */
#define GTK_DEBUG_CHECK(type) 0
-#define GTK_NOTE(type, action)
#endif /* G_ENABLE_DEBUG */
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index c78efc03c6..f7574dea72 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -140,11 +140,6 @@ GBytes *get_emoji_data (void);
(gtk_get_any_display_debug_flag_set () && \
G_UNLIKELY (gtk_get_display_debug_flags (display) & GTK_DEBUG_##type))
-#define GTK_DISPLAY_NOTE(display,type,action) \
- G_STMT_START { \
- if (GTK_DISPLAY_DEBUG_CHECK (display,type)) { action; }; \
- } G_STMT_END
-
#define GTK_DEBUG(type,...) \
G_STMT_START { \
if (GTK_DEBUG_CHECK (type)) \
@@ -160,7 +155,6 @@ GBytes *get_emoji_data (void);
#else
#define GTK_DISPLAY_DEBUG_CHECK(display,type) 0
-#define GTK_DISPLAY_NOTE(display,type,action)
#define GTK_DISPLAY_DEBUG(display,type,...)
#define GTK_DEBUG(type,...)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]