]> git.sesse.net Git - stockfish/commitdiff
Unused code cleanup
authorCody Ho <codyho@stanford.edu>
Tue, 18 Jul 2023 20:03:26 +0000 (13:03 -0700)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 19 Jul 2023 19:38:39 +0000 (21:38 +0200)
closes https://github.com/official-stockfish/Stockfish/pull/4696

No functional change

AUTHORS
src/bitboard.h
src/misc.h

diff --git a/AUTHORS b/AUTHORS
index 462ae5e82d58fe3d67774d5972341117a986b3b7..b345ff0b34b2efcb09ddceeab8bf6e2f99ce0c1c 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -45,6 +45,7 @@ candirufish
 Chess13234
 Chris Cain (ceebo)
 clefrks
+Cody Ho (aesrentai)
 Dale Weiler (graphitemaster)
 Daniel Axtens (daxtens)
 Daniel Dugovic (ddugovic)
index bbed91775072632e61bec6bfe4304d6ce1cbe415..244dc034c33d680611e861b469124a8b2e96d3cf 100644 (file)
@@ -186,16 +186,6 @@ inline Bitboard between_bb(Square s1, Square s2) {
   return BetweenBB[s1][s2];
 }
 
-
-/// forward_ranks_bb() returns a bitboard representing the squares on the ranks in
-/// front of the given one, from the point of view of the given color. For instance,
-/// forward_ranks_bb(BLACK, SQ_D3) will return the 16 squares on ranks 1 and 2.
-
-constexpr Bitboard forward_ranks_bb(Color c, Square s) {
-  return c == WHITE ? ~Rank1BB << 8 * relative_rank(WHITE, s)
-                    : ~Rank8BB >> 8 * relative_rank(BLACK, s);
-}
-
 /// aligned() returns true if the squares s1, s2 and s3 are aligned either on a
 /// straight or on a diagonal line.
 
index 69d470c22f8a0098273781739411372d98771ad3..0005fc0fb090a26ac4778ee9cc5659f7090f0c4c 100644 (file)
@@ -55,14 +55,6 @@ inline TimePoint now() {
         (std::chrono::steady_clock::now().time_since_epoch()).count();
 }
 
-template<class Entry, int Size>
-struct HashTable {
-  Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; }
-
-private:
-  std::vector<Entry> table = std::vector<Entry>(Size); // Allocate on the heap
-};
-
 
 enum SyncCout { IO_LOCK, IO_UNLOCK };
 std::ostream& operator<<(std::ostream&, SyncCout);