X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.h;h=be75a433867cd4e672e5a7013833f65ba8a03499;hp=d7f11b6c3a7ec7c3980efb3546d565a00bc742b6;hb=2c955f25de9d4c263b6e6d37fef06b378eec49a0;hpb=f32992f88c16c6d4c2b72164c88fc4581f8faba7 diff --git a/src/piece.h b/src/piece.h index d7f11b6c..be75a433 100644 --- a/src/piece.h +++ b/src/piece.h @@ -111,30 +111,6 @@ inline Piece piece_of_color_and_type(Color c, PieceType pt) { return Piece((int(c) << 3) | int(pt)); } -inline Piece pawn_of_color(Color c) { - return piece_of_color_and_type(c, PAWN); -} - -inline Piece knight_of_color(Color c) { - return piece_of_color_and_type(c, KNIGHT); -} - -inline Piece bishop_of_color(Color c) { - return piece_of_color_and_type(c, BISHOP); -} - -inline Piece rook_of_color(Color c) { - return piece_of_color_and_type(c, ROOK); -} - -inline Piece queen_of_color(Color c) { - return piece_of_color_and_type(c, QUEEN); -} - -inline Piece king_of_color(Color c) { - return piece_of_color_and_type(c, KING); -} - inline int piece_is_slider(Piece p) { return SlidingArray[int(p)]; }