|
1 | 1 | use arrow_array::BooleanArray; |
2 | | -use raphtory_api::iter::BoxedLIter; |
3 | 2 | use serde::{Deserialize, Serialize}; |
4 | | -use std::{fmt::Debug, iter}; |
| 3 | +use std::fmt::Debug; |
5 | 4 |
|
6 | 5 | #[derive(thiserror::Error, Debug, PartialEq)] |
7 | 6 | #[error("Cannot set previous value '{previous_value:?}' to '{new_value:?}' in position '{index}'")] |
@@ -275,24 +274,6 @@ where |
275 | 274 | LazyVec::LazyVec1(A::default(), TupleCol::from(inner)) |
276 | 275 | } |
277 | 276 |
|
278 | | - pub(crate) fn filled_ids(&self) -> BoxedLIter<'_, usize> { |
279 | | - match self { |
280 | | - LazyVec::Empty => Box::new(iter::empty()), |
281 | | - LazyVec::LazyVec1(_, tuples) => Box::new( |
282 | | - tuples |
283 | | - .iter() |
284 | | - .enumerate() |
285 | | - .filter_map(|(id, value)| value.map(|_| id)), |
286 | | - ), |
287 | | - LazyVec::LazyVecN(_, vector) => Box::new( |
288 | | - vector |
289 | | - .iter() |
290 | | - .enumerate() |
291 | | - .filter_map(|(id, value)| value.map(|_| id)), |
292 | | - ), |
293 | | - } |
294 | | - } |
295 | | - |
296 | 277 | #[cfg(test)] |
297 | 278 | fn iter(&self) -> Box<dyn Iterator<Item = &A> + Send + '_> { |
298 | 279 | match self { |
@@ -465,8 +446,6 @@ mod lazy_vec_tests { |
465 | 446 | }) |
466 | 447 | .unwrap(); |
467 | 448 | assert_eq!(vec.get(9), Some(&1)); |
468 | | - |
469 | | - assert_eq!(vec.filled_ids().collect_vec(), vec![1, 5, 6, 8, 9]); |
470 | 449 | } |
471 | 450 |
|
472 | 451 | #[test] |
|
0 commit comments