gdataset/trivial: adjust obsolte code comment

The code comment was no longer correct. g_data_remove_internal() does
not depend on this anymore. It also just calls datalist_find(), which
searches the entire list.
This commit is contained in:
Thomas Haller 2025-02-21 09:59:16 +01:00
parent 76d77d1cab
commit 82977db352

View File

@ -354,10 +354,10 @@ datalist_remove (GData *data, guint32 idx)
g_assert (idx < data->len);
#endif
/* g_data_remove_internal() relies on the fact, that this function removes
* the entry similar to g_array_remove_index_fast(). That is, the entries up
* to @idx are left unchanged, and the last entry is moved to position @idx.
* */
/* We remove the element similar to g_array_remove_index_fast(). That is, the
* entries up to @idx are left unchanged, and the last entry is moved to
* position @idx.
*/
index = datalist_index_get (data);
if (G_UNLIKELY (index))