Assorted small cleanups

closes https://github.com/official-stockfish/Stockfish/pull/3973

No functional change
This commit is contained in:
Giacomo Lorenzetti
2022-04-01 18:33:25 +02:00
committed by Joost VandeVondele
parent cc7bcd5303
commit f7d1491b3d
8 changed files with 42 additions and 48 deletions
+1 -5
View File
@@ -608,7 +608,6 @@ namespace {
(ss+2)->killers[0] = (ss+2)->killers[1] = MOVE_NONE;
(ss+2)->cutoffCnt = 0;
ss->doubleExtensions = (ss-1)->doubleExtensions;
ss->depth = depth;
Square prevSq = to_sq((ss-1)->currentMove);
// Initialize statScore to zero for the grandchildren of the current position.
@@ -869,7 +868,6 @@ namespace {
MovePicker mp(pos, ttMove, probCutBeta - ss->staticEval, depth - 3, &captureHistory);
bool ttPv = ss->ttPv;
bool captureOrPromotion;
ss->ttPv = false;
while ((move = mp.next_move()) != MOVE_NONE)
@@ -877,11 +875,9 @@ namespace {
{
assert(pos.capture(move) || promotion_type(move) == QUEEN);
captureOrPromotion = true;
ss->currentMove = move;
ss->continuationHistory = &thisThread->continuationHistory[ss->inCheck]
[captureOrPromotion]
[true]
[pos.moved_piece(move)]
[to_sq(move)];