remove FutureMoves::remove

This commit is contained in:
Simon Gardling 2025-03-25 15:51:13 -04:00
parent 10e0770c4f
commit cde1c5d4e4
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -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 {