Changed function so elements are always inserted, even if they compare

Mon Feb 16 23:05:06 1998  Owen Taylor  <owt1@cornell.edu>

	* glist.c (g_list_insert_sorted): Changed function
	  so elements are always inserted, even if they compare
	  equal with another.
This commit is contained in:
Owen Taylor 1998-02-17 04:03:56 +00:00 committed by Owen Taylor
parent afcc0ad3b2
commit 04c520bad9
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Mon Feb 16 23:05:06 1998 Owen Taylor <owt1@cornell.edu>
* glist.c (g_list_insert_sorted): Changed function
so elements are always inserted, even if they compare
equal with another.
Thu Feb 12 22:48:11 1998 Owen Taylor <owt1@cornell.edu>
* gstring.c glib.h: removed deprecated g_string_equal

View File

@ -389,9 +389,6 @@ g_list_insert_sorted (GList *list,
cmp = (*func) (data, tmp_list->data);
}
if (cmp == 0)
return list;
new_list = g_list_alloc();
new_list->data = data;