1 parent 42ee962 commit 3577aa4Copy full SHA for 3577aa4
1 file changed
wgpu-core/src/track/range.rs
@@ -90,10 +90,6 @@ impl<I: Copy + Ord, T: Copy + PartialEq> RangedStates<I, T> {
90
///
91
/// Gaps in the ranges are filled with `default` value.
92
pub fn isolate(&mut self, index: &Range<I>, default: T) -> &mut [(Range<I>, T)] {
93
- //TODO: implement this in 2 passes:
94
- // 1. scan the ranges to figure out how many extra ones need to be inserted
95
- // 2. go through the ranges by moving them them to the right and inserting the missing ones
96
-
97
let mut start_pos = match self.ranges.iter().position(|pair| pair.0.end > index.start) {
98
Some(pos) => pos,
99
None => {
0 commit comments