Remove Zobrist::noPawns

Zobrist::noPawns is no longer used.

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

no functional change
This commit is contained in:
Stephen Touset
2023-07-25 00:06:14 +02:00
committed by Stéphane Nicolet
parent 76e1e8fd39
commit 027713c4b4
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -205,6 +205,7 @@ Stefano Cardanobile (Stefano80)
Stefano Di Martino (StefanoD) Stefano Di Martino (StefanoD)
Steinar Gunderson (sesse) Steinar Gunderson (sesse)
Stéphane Nicolet (snicolet) Stéphane Nicolet (snicolet)
Stephen Touset (stouset)
Syine Mineta (MinetaS) Syine Mineta (MinetaS)
Thanar2 Thanar2
thaspel thaspel
+1 -2
View File
@@ -42,7 +42,7 @@ namespace Zobrist {
Key psq[PIECE_NB][SQUARE_NB]; Key psq[PIECE_NB][SQUARE_NB];
Key enpassant[FILE_NB]; Key enpassant[FILE_NB];
Key castling[CASTLING_RIGHT_NB]; Key castling[CASTLING_RIGHT_NB];
Key side, noPawns; Key side;
} }
namespace { namespace {
@@ -125,7 +125,6 @@ void Position::init() {
Zobrist::castling[cr] = rng.rand<Key>(); Zobrist::castling[cr] = rng.rand<Key>();
Zobrist::side = rng.rand<Key>(); Zobrist::side = rng.rand<Key>();
Zobrist::noPawns = rng.rand<Key>();
// Prepare the cuckoo tables // Prepare the cuckoo tables
std::memset(cuckoo, 0, sizeof(cuckoo)); std::memset(cuckoo, 0, sizeof(cuckoo));