mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
wgpu_core::track::range::RangedStates: Remove stale TODO. (#9636)
This commit is contained in:
1 parent
9f78f6f4dd
commit
6cb7f2170e
1 file changed
-4
@@ -90,10 +90,6 @@ impl<I: Copy + Ord, T: Copy + PartialEq> RangedStates<I, T> {
|
||||
///
|
||||
/// Gaps in the ranges are filled with `default` value.
|
||||
pub fn isolate(&mut self, index: &Range<I>, default: T) -> &mut [(Range<I>, T)] {
|
||||
//TODO: implement this in 2 passes:
|
||||
// 1. scan the ranges to figure out how many extra ones need to be inserted
|
||||
// 2. go through the ranges by moving them them to the right and inserting the missing ones
|
||||
|
||||
let mut start_pos = match self.ranges.iter().position(|pair| pair.0.end > index.start) {
|
||||
Some(pos) => pos,
|
||||
None => {
|
||||
|
||||
Reference in new issue
Block a user