remove FutureMoves::remove
This commit is contained in:
parent
10e0770c4f
commit
cde1c5d4e4
@ -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`
|
/// Determines if a [`Move`] at index `idx` is connected to `self.current_root`
|
||||||
/// Returns `false` if `self.current_root` is None
|
/// Returns `false` if `self.current_root` is None
|
||||||
fn is_connected_to_root(&self, idx: usize) -> bool {
|
fn is_connected_to_root(&self, idx: usize) -> bool {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user