Remove old unnecessary cmp hack

This commit is contained in:
Kevin Hamacher 2020-02-20 20:13:36 +01:00
parent 4cf6225133
commit f07a0032eb

View File

@ -728,16 +728,7 @@ impl Display {
// This is the non-CGB priority.
// Smaller x coord = higher.
use std::cmp;
queue.sort_by(|x, y| {
if x.x > y.x {
cmp::Ordering::Greater
} else if x.x < y.x {
cmp::Ordering::Less
} else {
cmp::Ordering::Equal
}
});
queue.sort_by(|x, y| x.x.cmp(&y.x));
queue.reverse();
// Render background