]> git.sesse.net Git - stockfish/commitdiff
Remove Zobrist::noPawns
authorStephen Touset <stephen@touset.org>
Mon, 24 Jul 2023 22:06:14 +0000 (00:06 +0200)
committerStéphane Nicolet <cassio@free.fr>
Mon, 24 Jul 2023 22:13:38 +0000 (00:13 +0200)
Zobrist::noPawns is no longer used.

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

no functional change

AUTHORS
src/position.cpp

diff --git a/AUTHORS b/AUTHORS
index b345ff0b34b2efcb09ddceeab8bf6e2f99ce0c1c..2f323d643344c45925313f60f8052158ef772a49 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -205,6 +205,7 @@ Stefano Cardanobile (Stefano80)
 Stefano Di Martino (StefanoD)
 Steinar Gunderson (sesse)
 Stéphane Nicolet (snicolet)
+Stephen Touset (stouset)
 Syine Mineta (MinetaS)
 Thanar2
 thaspel
index 31cdbc06b670afa2148f69bf4677987347551c3e..16181e962499491c650cb5f90a58bc2194efc004 100644 (file)
@@ -42,7 +42,7 @@ namespace Zobrist {
   Key psq[PIECE_NB][SQUARE_NB];
   Key enpassant[FILE_NB];
   Key castling[CASTLING_RIGHT_NB];
-  Key side, noPawns;
+  Key side;
 }
 
 namespace {
@@ -125,7 +125,6 @@ void Position::init() {
       Zobrist::castling[cr] = rng.rand<Key>();
 
   Zobrist::side = rng.rand<Key>();
-  Zobrist::noPawns = rng.rand<Key>();
 
   // Prepare the cuckoo tables
   std::memset(cuckoo, 0, sizeof(cuckoo));