From 82977db352de298b017d246377c5e6bae56a3378 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 21 Feb 2025 09:59:16 +0100 Subject: [PATCH] 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. --- glib/gdataset.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/glib/gdataset.c b/glib/gdataset.c index edcae9993..85598e911 100644 --- a/glib/gdataset.c +++ b/glib/gdataset.c @@ -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))