From cde1c5d4e4ab8f74d6140fa24f44a4e656fc53b3 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 25 Mar 2025 15:51:13 -0400 Subject: [PATCH] remove FutureMoves::remove --- src/logic/future_moves.rs | 9 --------- 1 file changed, 9 deletions(-) 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 {