Assorted code style issues

I have removed the check for

 pieceCount[PAWN] > FILE_NB

because totally useless.

No functional change.
This commit is contained in:
Marco Costalba
2017-04-22 09:03:17 +02:00
parent 6b9a22b40d
commit b48439e906
10 changed files with 58 additions and 60 deletions

View File

@@ -1192,7 +1192,6 @@ bool Position::pos_is_ok(int* failedStep) const {
}
if (step == Lists)
{
for (Piece pc : Pieces)
{
if (pieceCount[pc] != popcount(pieces(color_of(pc), type_of(pc))))
@@ -1202,9 +1201,6 @@ bool Position::pos_is_ok(int* failedStep) const {
if (board[pieceList[pc][i]] != pc || index[pieceList[pc][i]] != i)
return false;
}
if (pieceCount[PAWN] > FILE_NB)
return false;
}
if (step == Castling)
for (Color c = WHITE; c <= BLACK; ++c)