From d923a3f5bd691defcb8a7013e8ba6521ea2ecca0 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Mon, 2 Apr 2012 18:41:46 -0700 Subject: [PATCH 1/1] apply patch in tree --- common-src/glib-util.c | 9 --------- common-src/glib-util.h | 1 - 2 files changed, 10 deletions(-) diff --git a/common-src/glib-util.c b/common-src/glib-util.c index 91985e5..6a42e8e 100644 --- a/common-src/glib-util.c +++ b/common-src/glib-util.c @@ -120,15 +120,6 @@ void slist_free_full(GSList * list, GDestroyNotify free_fn) { } #endif -void g_queue_free_full(GQueue * queue) { - while (!g_queue_is_empty(queue)) { - gpointer data; - data = g_queue_pop_head(queue); - amfree(data); - } - g_queue_free(queue); -} - void g_ptr_array_free_full(GPtrArray * array) { size_t i; diff --git a/common-src/glib-util.h b/common-src/glib-util.h index f687fcd..70d0e12 100644 --- a/common-src/glib-util.h +++ b/common-src/glib-util.h @@ -72,7 +72,6 @@ void slist_free_full(GSList * list, GDestroyNotify free_fn); /* These functions all take a GLib container, and call free() on all the * pointers in the container before free()ing the container itself. */ -void g_queue_free_full(GQueue * queue); void g_ptr_array_free_full(GPtrArray * array); /* g_value_compare() does what you expect. It returns TRUE if and -- 2.30.2