liststore: Simplify code

This is also faster, though I doubt anyone's able to measure it.

The previous code was a more complicted way to do the same thing and it
was likely written the more complicated way because it fell out commit
758d7073a9 when fixing
https://bugzilla.gnome.org/show_bug.cgi?id=795307
This commit is contained in:
Benjamin Otte 2018-09-04 20:31:51 +02:00
parent b0e239c26e
commit e1cec0fb11

View File

@ -486,8 +486,7 @@ g_list_store_splice (GListStore *store,
return; return;
} }
it = g_sequence_insert_before (it, g_object_ref (additions[i])); g_sequence_insert_before (it, g_object_ref (additions[i]));
it = g_sequence_iter_next (it);
} }
} }