]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Retire MovePicker::discovered_check_candidates()
[stockfish] / src / position.cpp
index 306cebfc75f0947f55f8bcc5bef18392a90b87da..c6c20dbce73d40c2e4f45270de6689c1e1eee8bd 100644 (file)
@@ -1718,11 +1718,10 @@ bool Position::has_mate_threat(Color c) {
 
   MoveStack mlist[120];
   bool result = false;
-  Bitboard dc = discovered_check_candidates(sideToMove);
   Bitboard pinned = pinned_pieces(sideToMove);
 
   // Generate pseudo-legal non-capture and capture check moves
-  MoveStack* last = generate_non_capture_checks(*this, mlist, dc);
+  MoveStack* last = generate_non_capture_checks(*this, mlist);
   last = generate_captures(*this, last);
 
   // Loop through the moves, and see if one of them is mate