From cd21c16da77485ffd32d4151eb5ed27038427372 Mon Sep 17 00:00:00 2001 From: Arthur Bols Date: Thu, 22 Dec 2022 18:34:43 +0100 Subject: [PATCH] [BitBoard] Remove unused genShift --- BitBoard.cpp | 4 ---- BitBoard.hpp | 2 -- 2 files changed, 6 deletions(-) diff --git a/BitBoard.cpp b/BitBoard.cpp index 91de98f..51973ae 100644 --- a/BitBoard.cpp +++ b/BitBoard.cpp @@ -25,10 +25,6 @@ std::ostream &operator<<(std::ostream &os, const BitBoard &board) { return os; } -BitBoard BitBoard::genShift(BitBoard x, const int s) { - return (s < 0) ? (x >> -s) : (s > 63) ? x : (x << s); -} - BitBoard BitBoard::northFill() const { BitBoard result(mBoard); result |= (result << 8); diff --git a/BitBoard.hpp b/BitBoard.hpp index 2fe09a4..14ae54b 100644 --- a/BitBoard.hpp +++ b/BitBoard.hpp @@ -124,8 +124,6 @@ public: private: U64 mBoard = {}; - - static BitBoard genShift(BitBoard x, int s); }; // Relational operators