mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
7a17e236f7
commit
f7ecf3b618
@ -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, ...)
|
||||
|
@ -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,
|
||||
|
@ -149,9 +149,6 @@ char* meta_external_binding_name_for_action (guint keybinding_action);
|
||||
META_EXPORT
|
||||
char* meta_g_utf8_strndup (const gchar *src, gsize n);
|
||||
|
||||
META_EXPORT
|
||||
void meta_free_gslist_and_elements (GSList *list_to_deep_free);
|
||||
|
||||
META_EXPORT
|
||||
GPid meta_show_dialog (const char *type,
|
||||
const char *message,
|
||||
|
@ -1559,7 +1559,7 @@ meta_window_x11_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;
|
||||
return changed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user