summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-07 17:22:48 +0100
committerlukefromdc <[email protected]>2019-04-11 17:43:46 +0000
commit8401f5732d1b4b0eda453f6b3e50fa3564ae970e (patch)
tree0568d55379df501d553d9721aa38407e11344153
parent90da480f09838deeff34aa54fc8fe33607adf93a (diff)
downloadmarco-8401f5732d1b4b0eda453f6b3e50fa3564ae970e.tar.bz2
marco-8401f5732d1b4b0eda453f6b3e50fa3564ae970e.tar.xz
Replace meta_free_gslist_and_elements with g_slist_free_full
Use g_slist_free_full
-rw-r--r--src/core/util.c6
-rw-r--r--src/core/window.c4
-rw-r--r--src/include/util.h2
3 files changed, 2 insertions, 10 deletions
diff --git a/src/core/util.c b/src/core/util.c
index 7b5f0803..0602b28c 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -204,12 +204,6 @@ utf8_fputs (const char *str,
return retval;
}
-void
-meta_free_gslist_and_elements (GSList *list_to_deep_free)
-{
- g_slist_free_full (list_to_deep_free, g_free);
-}
-
#ifdef WITH_VERBOSE_MODE
void
meta_debug_spew_real (const char *format, ...)
diff --git a/src/core/window.c b/src/core/window.c
index 01f1a6cb..fce395b9 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -1072,7 +1072,7 @@ meta_window_free (MetaWindow *window,
if (window->struts)
{
- meta_free_gslist_and_elements (window->struts);
+ g_slist_free_full (window->struts, g_free);
window->struts = NULL;
meta_topic (META_DEBUG_WORKAREA,
@@ -6289,7 +6289,7 @@ meta_window_update_struts (MetaWindow *window)
changed = (old_iter != NULL || new_iter != NULL);
/* Update appropriately */
- meta_free_gslist_and_elements (old_struts);
+ g_slist_free_full (old_struts, g_free);
window->struts = new_struts;
if (changed)
{
diff --git a/src/include/util.h b/src/include/util.h
index 545357f8..107b9365 100644
--- a/src/include/util.h
+++ b/src/include/util.h
@@ -96,8 +96,6 @@ const char* meta_gravity_to_string (int gravity);
char* meta_g_utf8_strndup (const gchar *src, gsize n);
-void meta_free_gslist_and_elements (GSList *list_to_deep_free);
-
GPid meta_show_dialog (const char *type,
const char *message,
const char *timeout,