diff --git a/wgpu-core/src/track/range.rs b/wgpu-core/src/track/range.rs index 4ee5bcfd0..ed9af45ba 100644 --- a/wgpu-core/src/track/range.rs +++ b/wgpu-core/src/track/range.rs @@ -90,10 +90,6 @@ impl RangedStates { /// /// Gaps in the ranges are filled with `default` value. pub fn isolate(&mut self, index: &Range, default: T) -> &mut [(Range, 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 => {