Remove broken approach to get stable sort of CSS rules
The pointer comparisons in the sort compare function just doesn't work. We still need a stable sort, but the plan is to add a real one in glib.
This commit is contained in:
@ -2351,13 +2351,6 @@ gtk_css_provider_compare_rule (gconstpointer a_,
|
||||
if (compare != 0)
|
||||
return compare;
|
||||
|
||||
/* compare pointers in array to ensure a stable sort */
|
||||
if (a_ < b_)
|
||||
return -1;
|
||||
|
||||
if (a_ > b_)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user