Retire MovePicker::discovered_check_candidates()

It is now no more needed to know dc candidates
inside MovePicker, so avoid calculating there.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-11-04 14:46:16 +01:00
parent 0855d93de8
commit 94dcac1fee
6 changed files with 12 additions and 23 deletions

View File

@@ -54,7 +54,6 @@ public:
Move get_next_move();
Move get_next_move(Lock& lock);
int number_of_evasions() const;
Bitboard discovered_check_candidates() const;
private:
void score_captures();
@@ -69,7 +68,7 @@ private:
int phase;
const uint8_t* phasePtr;
MoveStack *curMove, *lastMove, *lastBadCapture;
Bitboard dc, pinned;
Bitboard pinned;
MoveStack moves[256], badCaptures[64];
};
@@ -88,12 +87,4 @@ inline int MovePicker::number_of_evasions() const {
return int(lastMove - moves);
}
/// MovePicker::discovered_check_candidates() returns a bitboard containing
/// all pieces which can possibly give discovered check. This bitboard is
/// computed by the constructor function.
inline Bitboard MovePicker::discovered_check_candidates() const {
return dc;
}
#endif // !defined(MOVEPICK_H_INCLUDED)