From: Joost VandeVondele Date: Sun, 24 Mar 2019 16:40:29 +0000 (+0100) Subject: Remove unneeded condition. (#2057) X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=2f11c03bbf61d8da2e2b201e4607c4aa9b5a5dc4 Remove unneeded condition. (#2057) This is covered by the line just before. If we would like to protect against the piece value of e.g. a N == B, this could be done by an assert, no need to do this at runtime. No functional change. --- diff --git a/src/material.cpp b/src/material.cpp index 294744f4..773f332f 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -70,14 +70,12 @@ namespace { bool is_KBPsK(const Position& pos, Color us) { return pos.non_pawn_material(us) == BishopValueMg - && pos.count(us) == 1 && pos.count(us) >= 1; } bool is_KQKRPs(const Position& pos, Color us) { return !pos.count(us) && pos.non_pawn_material(us) == QueenValueMg - && pos.count(us) == 1 && pos.count(~us) == 1 && pos.count(~us) >= 1; }