From a8c2d7499de2215e2ffb3c755361a339e5b798d3 Mon Sep 17 00:00:00 2001 From: Micha White Date: Thu, 21 Dec 2023 19:40:02 -0500 Subject: Fix warnings --- engine/src/lib.rs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'engine/src/lib.rs') diff --git a/engine/src/lib.rs b/engine/src/lib.rs index fdb50e6..8f9fde2 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -3,10 +3,10 @@ #![feature(maybe_uninit_slice)] use std::num::{NonZeroU8, NonZeroUsize}; -use std::sync::atomic::{AtomicBool, AtomicU8, AtomicUsize, Ordering}; +use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; use std::sync::Arc; use std::thread::JoinHandle; -use std::time::{Duration, Instant}; +use std::time::Duration; use parking_lot::Mutex; @@ -18,7 +18,7 @@ pub use transposition_table::{TranspositionTable, TranspositionTableRef}; mod eval; mod lazysort; mod stackvec; -mod tablebase; +//mod tablebase; mod transposition_table; pub const ENGINE_NAME: &str = "Ampere"; @@ -46,11 +46,7 @@ struct EvaluationTask<'a> { cancel_flag: AtomicBool, end_ponder_flag: AtomicBool, - start_time: Instant, - current_depth: AtomicU8, - selective_depth: AtomicU8, nodes_explored: AtomicUsize, - principle_variation: Mutex>, } #[derive(Debug, Default, Clone)] @@ -205,11 +201,7 @@ impl<'a> Engine<'a> { let cancel_flag = AtomicBool::new(false); let end_ponder_flag = AtomicBool::new(false); - let start_time = Instant::now(); - let current_depth = AtomicU8::new(0); - let selective_depth = AtomicU8::new(0); let nodes_explored = AtomicUsize::new(0); - let principle_variation = Mutex::new(Vec::new()); let task = EvaluationTask { position, @@ -220,11 +212,7 @@ impl<'a> Engine<'a> { cancel_flag, end_ponder_flag, - start_time, - current_depth, - selective_depth, nodes_explored, - principle_variation, }; let task = Arc::new(task); -- cgit v1.2.3