diff --git a/src/logic/future_moves.rs b/src/logic/future_moves.rs index 8afa331..9ff0285 100644 --- a/src/logic/future_moves.rs +++ b/src/logic/future_moves.rs @@ -172,15 +172,6 @@ impl FutureMoves { } } - #[allow(dead_code)] - fn remove(&mut self, index: usize) { - if let Some(parent) = self.arena[index].parent { - self.arena[parent].children.retain(|&j| j != index); - } - - self.arena[index].parent = None; - } - /// Determines if a [`Move`] at index `idx` is connected to `self.current_root` /// Returns `false` if `self.current_root` is None fn is_connected_to_root(&self, idx: usize) -> bool {