Remove redundant argument from hidden_checkers()

No functional change.
This commit is contained in:
Marco Costalba
2013-12-03 11:06:59 +01:00
parent e6c9ce6358
commit 342fd6385b
2 changed files with 9 additions and 8 deletions

View File

@@ -108,7 +108,7 @@ public:
// Checking
Bitboard checkers() const;
Bitboard discovered_check_candidates() const;
Bitboard pinned_pieces(Color toMove) const;
Bitboard pinned_pieces(Color c) const;
// Attacks to/from a given square
Bitboard attackers_to(Square s) const;
@@ -174,7 +174,7 @@ private:
// Helper functions
void do_castling(Square kfrom, Square kto, Square rfrom, Square rto);
Bitboard hidden_checkers(Square ksq, Color c, Color toMove) const;
Bitboard hidden_checkers(Color c, Color kingColor) const;
void put_piece(Square s, Color c, PieceType pt);
void remove_piece(Square s, Color c, PieceType pt);
void move_piece(Square from, Square to, Color c, PieceType pt);
@@ -315,11 +315,11 @@ inline Bitboard Position::checkers() const {
}
inline Bitboard Position::discovered_check_candidates() const {
return hidden_checkers(king_square(~sideToMove), sideToMove, sideToMove);
return hidden_checkers(sideToMove, ~sideToMove);
}
inline Bitboard Position::pinned_pieces(Color toMove) const {
return hidden_checkers(king_square(toMove), ~toMove, toMove);
inline Bitboard Position::pinned_pieces(Color c) const {
return hidden_checkers(c, c);
}
inline bool Position::pawn_passed(Color c, Square s) const {