Skip to content

Commit 6f5ac1f

Browse files
author
Admiral Adama
committed
BUG - remove dead code where non existent class variable is set
1 parent 664e66e commit 6f5ac1f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

models/ChessBoard.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,6 @@ function import_fen($fen) {
163163

164164
// ******* SET FULLMOVE NUMBER *******
165165
$this->fullmove_number = $matches[14];
166-
167-
// ******* SET HALFMOVE NUMBER *******
168-
$this->halfmove_number = $matches[14] * 2 - 1;
169-
if ( $this->color_to_move == ChessPiece::BLACK ) {
170-
$this->halfmove_number++;
171-
}
172166
// Short fen. Use default values.
173167
} else {
174168

0 commit comments

Comments
 (0)