meta: Remove meta_free_gslist_and_elements

This function was added for historic reasons, before that we had GSlist's
free_full function.

Since this can be now easily implemented with a function call and an explicit
GDestroyFunc, while no known dependency uses it let's move to use
g_slist_free_func instead.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/57
This commit is contained in:
Marco Trevisan (Treviño)
2019-05-15 14:28:55 -05:00
parent 7a17e236f7
commit f7ecf3b618
4 changed files with 2 additions and 16 deletions

View File

@ -241,17 +241,6 @@ utf8_fputs (const char *str,
return retval;
}
/**
* meta_free_gslist_and_elements: (skip)
* @list_to_deep_free: list to deep free
*
*/
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, ...)

View File

@ -1525,7 +1525,7 @@ meta_window_unmanage (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,