From 7372ece3176242e5ea472c57f84030ac37f590e6 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 21 Jan 2024 08:31:16 +0100 Subject: fix: remove unnecessary code branch --- src/grossmeister/search.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/grossmeister/search.rs b/src/grossmeister/search.rs index 1e7cf5f..baa91d0 100644 --- a/src/grossmeister/search.rs +++ b/src/grossmeister/search.rs @@ -135,10 +135,6 @@ impl Grossmeister { transposition.mov = Some(mov); transposition.score = score; transposition.node_type = NodeType::PV; - } else if transposition.node_type == NodeType::All { - transposition.mov = None; - transposition.score = score; - transposition.node_type = NodeType::All; } } else { self.board.unmake_move(mov, captured_piece, ep_target_before, castling_rights_before, hash_before); -- cgit v1.2.3