Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ickshonpe committed Jul 20, 2023
1 parent 3e71e45 commit df19fdd
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions crates/bevy_ui/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,6 @@ impl <'a> Iterator for ExtractedUiNodesDrainingIterator<'a> {
}
}
}

// let n =
// self.next_uinodes.iter().enumerate()
// .min_by(|(_, a), (_, b)| {
// let c = a.map_or(usize::MAX, |a| a.stack_index);
// let d = b.map_or(usize::MAX, |b| b.stack_index);
// c.cmp(&d)
// })
// .map(|(idx, _)| idx);

if n == usize::MAX {
None
Expand All @@ -234,15 +225,6 @@ impl <'a> Iterator for ExtractedUiNodesDrainingIterator<'a> {
*current = next;
out
}

// n.and_then(|n| {
// let drain = &mut self.uinodes[n];
// let current = self.next_uinodes[n];
// let next = drain.next();
// let out = current.take();
// *current = next;
// out
// })
}
}

Expand Down

0 comments on commit df19fdd

Please sign in to comment.