]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Zobrist::init() should be Position::init()
[stockfish] / src / types.h
index ac2ca0e78d9a4ea5d0b5497244de1f14339855f2..43b01bc9f6e13d8f324b2d33376b7d805a62ed76 100644 (file)
@@ -335,8 +335,6 @@ namespace Zobrist {
   extern Key castle[CASTLE_RIGHT_NB];
   extern Key side;
   extern Key exclusion;
-
-  void init();
 }
 
 extern Value PieceValue[PHASE_NB][PIECE_NB];
@@ -359,10 +357,6 @@ inline Square operator~(Square s) {
   return Square(s ^ 56); // Vertical flip SQ_A1 -> SQ_A8
 }
 
-inline Piece operator~(Piece c) {
-  return Piece(c ^ 8);
-}
-
 inline Square operator|(File f, Rank r) {
   return Square((r << 3) | f);
 }