]> git.sesse.net Git - stockfish/commitdiff
Remove useless initializations (#2115)
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 24 Apr 2019 17:51:57 +0000 (19:51 +0200)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Wed, 24 Apr 2019 17:51:57 +0000 (19:51 +0200)
Removes two unneeded inits, they are always set before their use later on.

No functional change.

src/search.cpp

index 5911e983fbae27a610110359c33de7e386c2c65e..f9fdc261b16c9185520fa79d7a0d02e0eccdf2a6 100644 (file)
@@ -584,8 +584,7 @@ namespace {
     assert(0 <= ss->ply && ss->ply < MAX_PLY);
 
     (ss+1)->ply = ss->ply + 1;
     assert(0 <= ss->ply && ss->ply < MAX_PLY);
 
     (ss+1)->ply = ss->ply + 1;
-    ss->currentMove = (ss+1)->excludedMove = bestMove = MOVE_NONE;
-    ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0];
+    (ss+1)->excludedMove = bestMove = MOVE_NONE;
     (ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE;
     Square prevSq = to_sq((ss-1)->currentMove);
 
     (ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE;
     Square prevSq = to_sq((ss-1)->currentMove);