Removed the if statement in the sort code, it's not needed

This commit is contained in:
Scoopta 2020-01-26 12:03:08 -08:00
parent b41b85a70b
commit 755d7b37f6

View File

@ -733,13 +733,7 @@ static gint do_sort(GtkFlowBoxChild* child1, GtkFlowBoxChild* child2, gpointer d
free(_filter);
free(t1);
free(t2);
if(dist1 < dist2) {
return -1;
} else if(dist1 > dist2) {
return 1;
} else {
return 0;
}
return dist1 - dist2;
}
static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {