]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Remove undefined pinned_pieces(Color c, Bitboard& p)
[stockfish] / src / position.h
index 9b5129a9c172fffc4000279abb0f8f7917a3285f..c9088438a23f9bc7be5561a6f17ae5f258109dd5 100644 (file)
@@ -185,7 +185,6 @@ public:
 
   // Bitboards for pinned pieces and discovered check candidates
   Bitboard discovered_check_candidates(Color c) const;
-  Bitboard pinned_pieces(Color c, Bitboard& p) const;
   Bitboard pinned_pieces(Color c) const;
 
   // Checking pieces and under check information
@@ -197,7 +196,6 @@ public:
 
   // Information about attacks to or from a given square
   Bitboard attackers_to(Square s) const;
-  Bitboard attackers_to(Square s, Color c) const;
   Bitboard piece_attacks_from(Piece p, Square s) const;
   Bitboard pawn_attacks_from(Square s, Color c) const;
   template<PieceType> Bitboard piece_attacks_from(Square s) const;
@@ -470,11 +468,6 @@ inline bool Position::is_check() const {
   return st->checkersBB != EmptyBoardBB;
 }
 
-inline Bitboard Position::attackers_to(Square s, Color c) const {
-
-  return attackers_to(s) & pieces_of_color(c);
-}
-
 inline bool Position::pawn_is_passed(Color c, Square s) const {
   return !(pieces(PAWN, opposite_color(c)) & passed_pawn_mask(c, s));
 }