Cleanup code

This PR includes following cleanups:
- Remove the unused depth variable in the thread class.
- cleanup ValueList (added from mstembera)

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

No functional change.
This commit is contained in:
Stefan Geschwentner
2022-08-09 20:56:13 +02:00
committed by Joost VandeVondele
parent e639c45577
commit 0a01dd044f
5 changed files with 5 additions and 18 deletions

View File

@@ -1099,10 +1099,12 @@ bool Position::see_ge(Move m, Value threshold) const {
// Don't allow pinned pieces to attack as long as there are
// pinners on their original square.
if (pinners(~stm) & occupied)
{
stmAttackers &= ~blockers_for_king(stm);
if (!stmAttackers)
break;
if (!stmAttackers)
break;
}
res ^= 1;