summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-cleanup.h
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-glib/as-cleanup.h')
-rw-r--r--libappstream-glib/as-cleanup.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/libappstream-glib/as-cleanup.h b/libappstream-glib/as-cleanup.h
index 9196654..e369a56 100644
--- a/libappstream-glib/as-cleanup.h
+++ b/libappstream-glib/as-cleanup.h
@@ -32,12 +32,6 @@
G_BEGIN_DECLS
-#define GS_DEFINE_CLEANUP_FUNCTION(Type, name, func) \
- static inline void name (void *v) \
- { \
- func (*(Type*)v); \
- }
-
#define GS_DEFINE_CLEANUP_FUNCTION0(Type, name, func) \
static inline void name (void *v) \
{ \
@@ -48,9 +42,6 @@ G_BEGIN_DECLS
GS_DEFINE_CLEANUP_FUNCTION0(GNode*, gs_local_node_unref, as_node_unref)
GS_DEFINE_CLEANUP_FUNCTION0(GNode*, gs_local_yaml_unref, as_yaml_unref)
-GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free_libc, free)
-
-#define _cleanup_free_libc_ __attribute__ ((cleanup(gs_local_free_libc)))
#define _cleanup_node_unref_ __attribute__ ((cleanup(gs_local_node_unref)))
#define _cleanup_yaml_unref_ __attribute__ ((cleanup(gs_local_yaml_unref)))