mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Retire useless piece_value_midgame() overloads
Directly access the table in the few call places. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -377,11 +377,11 @@ inline bool Position::square_is_occupied(Square s) const {
|
||||
}
|
||||
|
||||
inline Value Position::midgame_value_of_piece_on(Square s) const {
|
||||
return piece_value_midgame(piece_on(s));
|
||||
return PieceValueMidgame[piece_on(s)];
|
||||
}
|
||||
|
||||
inline Value Position::endgame_value_of_piece_on(Square s) const {
|
||||
return piece_value_endgame(piece_on(s));
|
||||
return PieceValueEndgame[piece_on(s)];
|
||||
}
|
||||
|
||||
inline Color Position::side_to_move() const {
|
||||
|
||||
Reference in New Issue
Block a user