]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Simplify KBNK endgame implementation
[stockfish] / src / types.h
index 3b5afecf335f55d2aeb54c43bfc71532a3919fb6..c4c2752c8e553961a2fbc70140ee7dea4523e22f 100644 (file)
@@ -413,11 +413,6 @@ constexpr Rank relative_rank(Color c, Square s) {
   return relative_rank(c, rank_of(s));
 }
 
-inline bool opposite_colors(Square s1, Square s2) {
-  int s = int(s1) ^ int(s2);
-  return ((s >> 3) ^ s) & 1;
-}
-
 constexpr Direction pawn_push(Color c) {
   return c == WHITE ? NORTH : SOUTH;
 }