X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.h;h=7fb840b669df9b133c50e005b1b1c117f29c2828;hp=e575c3ef9a7127cec8e95d73f75ee0e12d112e12;hb=e82382703c96cfc480555e9db29d999e1f54a38f;hpb=3b49aeb4f22569c2b5d5ca830858c4dd584fae7f diff --git a/src/position.h b/src/position.h index e575c3ef..7fb840b6 100644 --- a/src/position.h +++ b/src/position.h @@ -122,7 +122,6 @@ public: Square castle_rook_square(Color c, CastlingSide s) const; // Checking - bool in_check() const; Bitboard checkers() const; Bitboard discovered_check_candidates() const; Bitboard pinned_pieces() const; @@ -330,10 +329,6 @@ inline Bitboard Position::checkers() const { return st->checkersBB; } -inline bool Position::in_check() const { - return st->checkersBB != 0; -} - inline Bitboard Position::discovered_check_candidates() const { return hidden_checkers(); }