]> git.sesse.net Git - stockfish/commitdiff
Remove two obsolete asserts in prevents_move
authorMarco Costalba <mcostalba@gmail.com>
Wed, 26 Dec 2012 11:27:09 +0000 (12:27 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 26 Dec 2012 11:27:41 +0000 (12:27 +0100)
Now that this function is called also to calculate
move's extensions the asserts are no more valid.

No functional change.

src/search.cpp

index 085d124ee66b994819a1e8e71e20bf99eb3532cd..46636787f58ee7afa99059126c80761b394a6b4c 100644 (file)
@@ -1396,8 +1396,6 @@ split_point_start: // At split points actual search starts from here
 
     assert(is_ok(first));
     assert(is_ok(second));
-    assert(!pos.is_capture_or_promotion(first));
-    assert(!pos.is_passed_pawn_push(first));
 
     Square m1from = from_sq(first);
     Square m2from = from_sq(second);