mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01: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);
|
||||
#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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user