Retire Position::in_check()

It is redundant with Position::checkers()

No functional change.
This commit is contained in:
Marco Costalba
2012-12-25 17:59:35 +01:00
parent 3b49aeb4f2
commit e82382703c
7 changed files with 17 additions and 22 deletions

View File

@@ -133,7 +133,7 @@ Value Endgame<KXK>::operator()(const Position& pos) const {
// Stalemate detection with lone king
if ( pos.side_to_move() == weakerSide
&& !pos.in_check()
&& !pos.checkers()
&& !MoveList<LEGAL>(pos).size()) {
return VALUE_DRAW;
}