mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
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:
parent
76d77d1cab
commit
82977db352
@ -354,10 +354,10 @@ datalist_remove (GData *data, guint32 idx)
|
|||||||
g_assert (idx < data->len);
|
g_assert (idx < data->len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* g_data_remove_internal() relies on the fact, that this function removes
|
/* We remove the element similar to g_array_remove_index_fast(). That is, the
|
||||||
* the entry similar to g_array_remove_index_fast(). That is, the entries up
|
* entries up to @idx are left unchanged, and the last entry is moved to
|
||||||
* to @idx are left unchanged, and the last entry is moved to position @idx.
|
* position @idx.
|
||||||
* */
|
*/
|
||||||
|
|
||||||
index = datalist_index_get (data);
|
index = datalist_index_get (data);
|
||||||
if (G_UNLIKELY (index))
|
if (G_UNLIKELY (index))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user