From: VoyagerOne Date: Thu, 23 Jun 2016 14:08:43 +0000 (-0400) Subject: Comment out a redundant condition X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c94145b65c21bdca71f1a8248dee8d19d974f555;p=stockfish Comment out a redundant condition Take advantage that VALUE_NONE = 32002 to remove the condition. Commented out and not removed becuase it is tricky to rely on the hidden value of VALUE_NONE and code can break in case we change VALUE_NONE in the future. No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index d1b717b4..c98c3334 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -823,7 +823,7 @@ moves_loop: // When in check search starts from here CheckInfo ci(pos); value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc improving = ss->staticEval >= (ss-2)->staticEval - || ss->staticEval == VALUE_NONE + /* || ss->staticEval == VALUE_NONE Already implicit in the previous condition */ ||(ss-2)->staticEval == VALUE_NONE; singularExtensionNode = !rootNode