mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +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:
parent
b7cb6180cf
commit
1b0fee9b17
1 changed files with 0 additions and 3 deletions
|
@ -349,8 +349,6 @@ int generate_legal_moves(const Position& pos, MoveStack* mlist) {
|
||||||
|
|
||||||
assert(pos.is_ok());
|
assert(pos.is_ok());
|
||||||
|
|
||||||
Bitboard pinned = pos.pinned_pieces(pos.side_to_move());
|
|
||||||
|
|
||||||
if (pos.is_check())
|
if (pos.is_check())
|
||||||
return generate_evasions(pos, mlist);
|
return generate_evasions(pos, mlist);
|
||||||
|
|
||||||
|
@ -383,7 +381,6 @@ bool move_is_legal(const Position& pos, const Move m) {
|
||||||
Color them = opposite_color(us);
|
Color them = opposite_color(us);
|
||||||
Square from = move_from(m);
|
Square from = move_from(m);
|
||||||
Piece pc = pos.piece_on(from);
|
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
|
// If the from square is not occupied by a piece belonging to the side to
|
||||||
// move, the move is obviously not legal.
|
// move, the move is obviously not legal.
|
||||||
|
|
Loading…
Add table
Reference in a new issue