1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

Remove two useless calls to pinned_pieces()

Are obsoleted by new pinned caching code.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-02-21 19:59:29 +01:00
parent b7cb6180cf
commit 1b0fee9b17

View file

@ -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.