GNOME Bugzilla – Bug 722256
gslist: Simplified node removal and got rid of some code duplication
Last modified: 2017-09-12 11:11:53 UTC
Merged two almost identical functions for removing at most one or all nodes containing some data. Also simplified the code a bit by using a pointer to a pointer (see http://wordaligned.org/articles/two-star-programming).
Created attachment 266347 [details] [review] gslist: Simplified node removal and got rid of some code duplication
ping – anything wrong with it? Or is gslist unmaintained?
Review of attachment 266347 [details] [review]: Looks good to me, modulo a couple of nitpicks. ::: glib/gslist.c @@ +439,3 @@ gconstpointer data) { + return _g_slist_remove_data(list, data, FALSE); Nitpick: Should be a space before `(`. @@ +458,3 @@ gconstpointer data) { + return _g_slist_remove_data(list, data, TRUE); Nitpick: Should be a space before `(`.
Pushed with fixes for the nitpicks. Attachment 266347 [details] pushed as 54e3ed1 - gslist: Simplified node removal and got rid of some code duplication