mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
sorter: Remove a return_if_fail()
It's too expsensive.
This commit is contained in:
parent
4d90846182
commit
d1a068e5b1
@ -142,7 +142,8 @@ gtk_sorter_compare (GtkSorter *self,
|
||||
{
|
||||
GtkOrdering result;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_SORTER (self), GTK_ORDERING_EQUAL);
|
||||
/* We turn this off because gtk_sorter_compare() is called so much that it's too expensive */
|
||||
/* g_return_val_if_fail (GTK_IS_SORTER (self), GTK_ORDERING_EQUAL); */
|
||||
g_return_val_if_fail (item1 && item2, GTK_ORDERING_EQUAL);
|
||||
|
||||
if (item1 == item2)
|
||||
|
Loading…
Reference in New Issue
Block a user