From 0ecc264b34d25af0687ff4db8f41d7e5fe646bd5 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sun, 18 Nov 2018 22:21:37 +0100 Subject: [PATCH] Simplify away redundant condition No functional change. --- src/position.cpp | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/position.cpp b/src/position.cpp index 6fa8f9f..bed440e 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -771,10 +771,6 @@ bool Position::legal(Move m) const { if (immobility_illegal() && (type_of(m) == DROP || type_of(m) == NORMAL) && !(moves_bb(us, type_of(moved_piece(m)), to, 0) & board_bb())) return false; - // Game end - if (is_variant_end()) - return false; - // En passant captures are a tricky special case. Because they are rather // uncommon, we do it simply by testing whether the king is attacked after // the move is made. -- 1.7.0.4