position: Remove unused pseudo_legal()

This commit is contained in:
Calcitem 2020-12-31 17:12:48 +08:00
parent 97c1b969bc
commit fe1d03287a
2 changed files with 0 additions and 12 deletions

View File

@ -396,17 +396,6 @@ bool Position::legal(Move m) const
}
/// Position::pseudo_legal() takes a random move and tests whether the move is
/// pseudo legal. It is used to validate moves from TT that can be corrupted
/// due to SMP concurrent access or hash position key aliasing.
bool Position::pseudo_legal(const Move m) const
{
// TODO
return legal(m);
}
/// Position::do_move() makes a move, and saves all information necessary
/// to a StateInfo object. The move is assumed to be legal. Pseudo-legal
/// moves should be filtered out before this function is called.

View File

@ -72,7 +72,6 @@ public:
// Properties of moves
bool legal(Move m) const;
bool pseudo_legal(const Move m) const;
Piece moved_piece(Move m) const;
// Doing and undoing moves