position: Remove unused code in check_if_game_is_over()

This commit is contained in:
Calcitem 2021-08-14 23:07:25 +08:00
parent 9173006139
commit 28fd9fb0a2
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 2 additions and 7 deletions

View File

@ -980,11 +980,6 @@ void Position::update_score()
bool Position::check_if_game_is_over()
{
if (phase == Phase::ready ||
phase == Phase::gameOver) {
return true;
}
#ifdef RULE_50
if (rule.nMoveRule > 0 &&
posKeyHistory.size() > rule.nMoveRule) {