]> git.sesse.net Git - stockfish/commitdiff
Remove useless variable 'PostFutilityValueMargin'
authorJoona Kiiski <joona.kiiski@gmail.com>
Wed, 27 Jan 2010 22:02:51 +0000 (00:02 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 28 Jan 2010 10:17:59 +0000 (11:17 +0100)
No functional change

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index 671a23cf5a6b14e8ef20eb84a088e485eead727a..7b9b5b370b5aac62a916e6dcb3d020dbaa065e10 100644 (file)
@@ -1468,7 +1468,6 @@ namespace {
 
     // Calculate depth dependant futility pruning parameters
     const int FutilityMoveCountMargin = 3 + (1 << (3 * int(depth) / 8));
 
     // 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)
 
     // Evaluate the position statically
     if (!isCheck)
@@ -1482,7 +1481,7 @@ namespace {
         }
 
         ss[ply].eval = staticValue;
         }
 
         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);
     }
         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
     // 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
 
     // Null move search
     if (    allowNullmove