Skip to content
Browse files

Remove now redundant asserts.

  • Loading branch information...
1 parent 6c2d5ca commit 4f1ea67ca013536d250b1793a885bf6e7779d732 @lorenzo-stoakes committed Aug 5, 2012
Showing with 0 additions and 14 deletions.
  1. +0 −14 game.c
View
14 game.c
@@ -74,17 +74,11 @@ doCastleKingSide(Game *game)
index = chessSet->PiecePositionIndexes[E1 + offset];
- assert(index >= 0);
- assert(index < MAX_PIECE_LOCATION);
-
chessSet->PiecePositionIndexes[G1 + offset] = index;
chessSet->PiecePositions[side][King][index] = G1 + offset;
index = chessSet->PiecePositionIndexes[H1 + offset];
- assert(index >= 0);
- assert(index < MAX_PIECE_LOCATION);
-
chessSet->PiecePositionIndexes[F1 + offset] = index;
chessSet->PiecePositions[side][Rook][index] = F1 + offset;
@@ -784,14 +778,6 @@ Unmove(Game *game)
indexLast = --chessSet->PieceCounts[side][removePiece];
- assert(side <= Black);
-
- assert(removePiece >= Pawn);
- assert(removePiece <= King);
-
- assert(indexLast >= 0);
- assert(indexLast < MAX_PIECE_LOCATION);
-
last = chessSet->PiecePositions[side][removePiece][indexLast];
indexTo = chessSet->PiecePositionIndexes[to];

0 comments on commit 4f1ea67

Please sign in to comment.
Something went wrong with that request. Please try again.