remove StateInfo::next

unused.

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

no functional change
This commit is contained in:
Shawn Xu
2025-04-26 21:37:17 +02:00
committed by Joost VandeVondele
parent f2507d0562
commit b915ed702a
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -698,7 +698,6 @@ DirtyPiece Position::do_move(Move m,
// our state pointer to point to the new (ready to be updated) state.
std::memcpy(&newSt, st, offsetof(StateInfo, key));
newSt.previous = st;
st->next = &newSt;
st = &newSt;
// Increment ply counters. In particular, rule50 will be reset to zero later on
@@ -1011,7 +1010,6 @@ void Position::do_null_move(StateInfo& newSt, const TranspositionTable& tt) {
std::memcpy(&newSt, st, sizeof(StateInfo));
newSt.previous = st;
st->next = &newSt;
st = &newSt;
if (st->epSquare != SQ_NONE)