Retire PieceValueXXX[] getters

They don't add any value given that the corresponding
table has global visibility anyhow.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-10-22 15:52:53 +01:00
parent b5bbc1f713
commit f2e78d9f84
5 changed files with 12 additions and 20 deletions

View File

@@ -350,14 +350,6 @@ extern const Value PieceValueMidgame[17];
extern const Value PieceValueEndgame[17];
extern int SquareDistance[64][64];
inline Value piece_value_midgame(Piece p) {
return PieceValueMidgame[p];
}
inline Value piece_value_endgame(Piece p) {
return PieceValueEndgame[p];
}
inline Value value_mate_in(int ply) {
return VALUE_MATE - ply;
}