Remove old unnecessary cmp hack
This commit is contained in:
parent
4cf6225133
commit
f07a0032eb
@ -728,16 +728,7 @@ impl Display {
|
|||||||
|
|
||||||
// This is the non-CGB priority.
|
// This is the non-CGB priority.
|
||||||
// Smaller x coord = higher.
|
// Smaller x coord = higher.
|
||||||
use std::cmp;
|
queue.sort_by(|x, y| x.x.cmp(&y.x));
|
||||||
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.reverse();
|
queue.reverse();
|
||||||
|
|
||||||
// Render background
|
// Render background
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user