Skip to content

Commit

Permalink
Remove useless initializations (#2115)
Browse files Browse the repository at this point in the history
Removes two unneeded inits, they are always set before their use later on.

No functional change.
  • Loading branch information
vondele authored and mcostalba committed Apr 24, 2019
1 parent a858b5a commit 6373fd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,7 @@ namespace {
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);

Expand Down

0 comments on commit 6373fd5

Please sign in to comment.