From 808a4fe817f79f472c92e7b9fb914a8be73ff1be Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 15 Jun 2011 12:31:27 +0100 Subject: [PATCH] Remove useless bestValue = alpha assignement It is a fossil from the root_search() era, no more needed today. Spotted by Onno No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 50dfcc0c..cd8a9e46 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -591,8 +591,6 @@ namespace { if (StopRequest) break; - assert(value >= alpha); - // In case of failing high/low increase aspiration window and research, // otherwise exit the fail high/low loop. if (value >= beta) @@ -747,8 +745,6 @@ namespace { threatMove = sp->threatMove; goto split_point_start; } - else if (RootNode) - bestValue = alpha; // Step 1. Initialize node and poll. Polling can abort search ss->currentMove = ss->bestMove = threatMove = (ss+1)->excludedMove = MOVE_NONE; -- 2.39.2