X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=b73eccbac09c89a015de01cfe2afcb873be51152;hp=f1627a961168403c568872e64abff409e9307065;hb=ad4739a6d45d9d37afe2414f432a07190fae9b83;hpb=a695ed65a8b98c94a928862be76500485b38c414 diff --git a/src/types.h b/src/types.h index f1627a96..b73eccba 100644 --- a/src/types.h +++ b/src/types.h @@ -283,10 +283,6 @@ enum Rank { RANK_1, RANK_2, RANK_3, RANK_4, RANK_5, RANK_6, RANK_7, RANK_8 }; -enum SquareColor { - DARK, LIGHT -}; - enum ScaleFactor { SCALE_FACTOR_DRAW = 0, SCALE_FACTOR_NORMAL = 64, @@ -452,10 +448,6 @@ inline Rank relative_rank(Color c, Square s) { return relative_rank(c, rank_of(s)); } -inline SquareColor color_of(Square s) { - return SquareColor(int(rank_of(s) + s) & 1); -} - inline bool opposite_colors(Square s1, Square s2) { int s = s1 ^ s2; return ((s >> 3) ^ s) & 1;