Remove two useless assignments (#2093)
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 13 Apr 2019 15:17:47 +0000 (17:17 +0200)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Sat, 13 Apr 2019 15:17:47 +0000 (17:17 +0200)
These variables are initialized before their use in the movepicker loop.

passed STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 138732 W: 30727 L: 30838 D: 77167
http://tests.stockfishchess.org/tests/view/5cb07af40ebc5925cf012c32

No functional change.

src/search.cpp

index cb6c5d44ebbcf18d2557b283a69be5cf6f820642..15e88ca4f2746939bd3c3e25b04ed15ff11b3824 100644 (file)
@@ -1226,8 +1226,7 @@ moves_loop: // When in check, search starts from here
 
     Thread* thisThread = pos.this_thread();
     (ss+1)->ply = ss->ply + 1;
-    ss->currentMove = bestMove = MOVE_NONE;
-    ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0];
+    bestMove = MOVE_NONE;
     inCheck = pos.checkers();
     moveCount = 0;