From bdd61b174452f13336159fab6954bc37589a4c06 Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Thu, 28 Jan 2010 00:02:51 +0200 Subject: [PATCH] Remove useless variable 'PostFutilityValueMargin' No functional change Signed-off-by: Marco Costalba --- src/search.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 671a23cf..7b9b5b37 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1468,7 +1468,6 @@ namespace { // Calculate depth dependant futility pruning parameters const int FutilityMoveCountMargin = 3 + (1 << (3 * int(depth) / 8)); - const int PostFutilityValueMargin = FutilityMargins[int(depth)]; // Evaluate the position statically if (!isCheck) @@ -1482,7 +1481,7 @@ namespace { } ss[ply].eval = staticValue; - futilityValue = staticValue + PostFutilityValueMargin; //FIXME: Remove me, only for split + futilityValue = staticValue + FutilityMargins[int(depth)]; //FIXME: Remove me, only for split staticValue = refine_eval(tte, staticValue, ply); // Enhance accuracy with TT value if possible update_gains(pos, ss[ply - 1].currentMove, ss[ply - 1].eval, ss[ply].eval); } @@ -1493,8 +1492,8 @@ namespace { // FIXME: test with modified condition 'depth < RazorDepth' if ( !isCheck && depth < SelectiveDepth - && staticValue - PostFutilityValueMargin >= beta) - return staticValue - PostFutilityValueMargin; + && staticValue - FutilityMargins[int(depth)] >= beta) + return staticValue - FutilityMargins[int(depth)]; // Null move search if ( allowNullmove -- 2.39.2