cleanup and fix warnings
This commit is contained in:
@@ -74,6 +74,7 @@ impl std::fmt::Display for FutureMoveConfig {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[allow(dead_code)]
|
||||
pub enum ChildrenEvalMethod {
|
||||
/// Best (by far) strat compared to Max or Min
|
||||
Average,
|
||||
@@ -168,6 +169,7 @@ 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);
|
||||
@@ -410,6 +412,7 @@ impl FutureMoves {
|
||||
|
||||
/// Checks the consistancy of the Arena (parents and children)
|
||||
/// returns a vector of errors ([`String`])
|
||||
#[allow(dead_code)]
|
||||
pub fn check_arena(&self) -> Vec<String> {
|
||||
let mut errors = vec![];
|
||||
for idx in 0..self.arena.len() {
|
||||
|
||||
Reference in New Issue
Block a user