From: Marco Costalba Date: Sat, 21 Feb 2009 18:59:29 +0000 (+0100) Subject: Remove two useless calls to pinned_pieces() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=1b0fee9b17a1220b60b3051626e8444f474e884c Remove two useless calls to pinned_pieces() Are obsoleted by new pinned caching code. Signed-off-by: Marco Costalba --- diff --git a/src/movegen.cpp b/src/movegen.cpp index 39030572..37e66724 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -349,8 +349,6 @@ int generate_legal_moves(const Position& pos, MoveStack* mlist) { assert(pos.is_ok()); - Bitboard pinned = pos.pinned_pieces(pos.side_to_move()); - if (pos.is_check()) return generate_evasions(pos, mlist); @@ -383,7 +381,6 @@ bool move_is_legal(const Position& pos, const Move m) { Color them = opposite_color(us); Square from = move_from(m); Piece pc = pos.piece_on(from); - Bitboard pinned = pos.pinned_pieces(us); // If the from square is not occupied by a piece belonging to the side to // move, the move is obviously not legal.