X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=2ede62feecd8d7b201baaa9044bf3c59d5241f1a;hb=b35e59355134e34b00108c2ad58ea46df60eb301;hp=abe75807e2869044b05aad7b1cdfd696c31594bf;hpb=20d88dbf9803d93f89b8831f59f95b4d6c9f3aa1;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index abe75807..2ede62fe 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -651,20 +651,6 @@ bool Position::move_is_check(Move m, Bitboard dcCandidates) const { } -/// Position::move_is_capture() tests whether a move from the current -/// position is a capture. Move must not be MOVE_NONE. - -bool Position::move_is_capture(Move m) const { - - assert(m != MOVE_NONE); - - return ( !square_is_empty(move_to(m)) - && (color_of_piece_on(move_to(m)) != color_of_piece_on(move_from(m))) - ) - || move_is_ep(m); -} - - /// Position::update_checkers() udpates chekers info given the move. It is called /// in do_move() and is faster then find_checkers().