File tree 1 file changed +0
-16
lines changed 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -182,22 +182,6 @@ impl<D: SnapshotVecDelegate> SnapshotVec<D> {
182
182
& self . undo_log [ snapshot. length ..]
183
183
}
184
184
185
- pub fn values_since_snapshot ( & self , snapshot : & Snapshot ) -> Range < usize > {
186
- // `Snapshot` is centred around tracking the length of `undo_log`,
187
- // rather than `values` as we need here, so we need to find the first
188
- // value added since the snapshot in `undo_log`. We can then assume
189
- // the values have been created contiguously up to the current length.
190
- let idx = self . undo_log [ snapshot. length ..] . iter ( ) . rev ( ) . find_map ( |action| {
191
- if let & NewElem ( idx) = action {
192
- Some ( idx)
193
- } else {
194
- None
195
- }
196
- } ) . unwrap_or ( self . len ( ) ) ;
197
-
198
- idx..self . len ( )
199
- }
200
-
201
185
fn assert_open_snapshot ( & self , snapshot : & Snapshot ) {
202
186
// Failures here may indicate a failure to follow a stack discipline.
203
187
assert ! ( self . undo_log. len( ) >= snapshot. length) ;
You can’t perform that action at this time.
0 commit comments