deleteLink

fun deleteLink(list: SList, link: SList): SList

Removes the node link_ from the list and frees it. Compare this to g_slist_remove_link() which removes the node without freeing it.

Removing arbitrary nodes from a singly-linked list requires time that is proportional to the length of the list (ie. O(n)). If you find yourself using g_slist_delete_link() frequently, you should consider a different data structure, such as the doubly-linked #GList.

Return

the new head of @list

Parameters

list

a #GSList

link

node to delete