Retire square_is_weak()

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-06-28 16:25:44 +02:00
parent e0a00c4996
commit 31a0d2200c
3 changed files with 9 additions and 14 deletions

View File

@@ -245,7 +245,7 @@ void Position::set_castling_rights(char token) {
Square sqH = relative_square(c, SQ_H1);
Square rsq, ksq = king_square(c);
token = toupper(token);
token = char(toupper(token));
if (token == 'K')
for (rsq = sqH; piece_on(rsq) != make_piece(c, ROOK); rsq--) {}