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:
Alexander Larsson
2012-03-15 16:22:04 +01:00
parent 8bfa0f8feb
commit a20b4423f4

View File

@ -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;
}