Skip to content

Commit

Permalink
Unused code cleanup
Browse files Browse the repository at this point in the history
closes #4696

No functional change
  • Loading branch information
aesrentai authored and vondele committed Jul 19, 2023
1 parent 6abd0bd commit 3fe0d5c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ candirufish
Chess13234
Chris Cain (ceebo)
clefrks
Cody Ho (aesrentai)
Dale Weiler (graphitemaster)
Daniel Axtens (daxtens)
Daniel Dugovic (ddugovic)
Expand Down
10 changes: 0 additions & 10 deletions src/bitboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
8 changes: 0 additions & 8 deletions src/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3fe0d5c

Please sign in to comment.