X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpiece.h;h=be75a433867cd4e672e5a7013833f65ba8a03499;hb=fcecc5212e42794cba218fc1ffd39cd9da818655;hp=d7f11b6c3a7ec7c3980efb3546d565a00bc742b6;hpb=fa322b376823a1d8868eb45d07e2e4331359faae;p=stockfish 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)]; }