]> git.sesse.net Git - stockfish/blobdiff - src/pawns.h
Move pawnsOnSquares to Position (#2100)
[stockfish] / src / pawns.h
index 96ed4149216fc24527e920d86c4e0ed5ab477122..88b5554537e72a935606d0665a0f1668838f26a4 100644 (file)
@@ -40,10 +40,6 @@ struct Entry {
   int weak_unopposed(Color c) const { return weakUnopposed[c]; }
   int passed_count() const { return popcount(passedPawns[WHITE] | passedPawns[BLACK]); };
 
-  int pawns_on_same_color_squares(Color c, Square s) const {
-    return pawnsOnSquares[c][bool(DarkSquares & s)];
-  }
-
   template<Color Us>
   Score king_safety(const Position& pos) {
     return  kingSquares[Us] == pos.square<KING>(Us) && castlingRights[Us] == pos.castling_rights(Us)