]> git.sesse.net Git - stockfish/commitdiff
Remove unused field SearchStack::ttMove
authorloco-loco <loco-loco@users.noreply.github.com>
Sun, 20 Dec 2015 20:37:18 +0000 (20:37 +0000)
committerJoona Kiiski <joona@zoox.com>
Sun, 20 Dec 2015 20:37:18 +0000 (20:37 +0000)
No functional change

Resolves #533

src/search.cpp
src/search.h

index a8b6e7d51d4d84650d1a65d76e39e246a6a8afdf..a35438be610af50cec2db6237a120ee6f00b9ccd 100644 (file)
@@ -641,7 +641,7 @@ namespace {
 
     assert(0 <= ss->ply && ss->ply < MAX_PLY);
 
-    ss->currentMove = ss->ttMove = (ss+1)->excludedMove = bestMove = MOVE_NONE;
+    ss->currentMove = (ss+1)->excludedMove = bestMove = MOVE_NONE;
     (ss+1)->skipEarlyPruning = false; (ss+1)->reduction = DEPTH_ZERO;
     (ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE;
 
@@ -652,8 +652,8 @@ namespace {
     posKey = excludedMove ? pos.exclusion_key() : pos.key();
     tte = TT.probe(posKey, ttHit);
     ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE;
-    ss->ttMove = ttMove =  RootNode ? thisThread->rootMoves[thisThread->PVIdx].pv[0]
-                         : ttHit    ? tte->move() : MOVE_NONE;
+    ttMove =  RootNode ? thisThread->rootMoves[thisThread->PVIdx].pv[0]
+            : ttHit    ? tte->move() : MOVE_NONE;
 
     // At non-PV nodes we check for an early TT cutoff
     if (  !PvNode
index 2a9a37370af7b713bc730ece27ed47ae1de066c7..f93c53a50a0f4e276966b0da894d3c873574296e 100644 (file)
@@ -39,7 +39,6 @@ struct Stack {
   Move* pv;
   int ply;
   Move currentMove;
-  Move ttMove;
   Move excludedMove;
   Move killers[2];
   Depth reduction;