Unify do_promotion_move()

Integrate do_promotion_move() in do_move() this reduces line count
and code readibility.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-08-16 14:49:15 +01:00
parent cb506d3b16
commit ec14fb1b33
2 changed files with 47 additions and 99 deletions

View File

@@ -312,7 +312,6 @@ private:
// Helper functions for doing and undoing moves
void do_capture_move(PieceType capture, Color them, Square to, bool ep);
void do_castle_move(Move m);
void do_promotion_move(Move m);
void undo_castle_move(Move m);
void undo_promotion_move(Move m);
void undo_ep_move(Move m);