projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a858b5a
)
Remove useless initializations (#2115)
author
Joost VandeVondele
<Joost.VandeVondele@gmail.com>
Wed, 24 Apr 2019 17:51:57 +0000 (19:51 +0200)
committer
Marco 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
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
5911e98
..
f9fdc26
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-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);