Skip to content

Commit 3fe0d5c

Browse files
aesrentaivondele
authored andcommitted
Unused code cleanup
closes #4696 No functional change
1 parent 6abd0bd commit 3fe0d5c

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ candirufish
4545
Chess13234
4646
Chris Cain (ceebo)
4747
clefrks
48+
Cody Ho (aesrentai)
4849
Dale Weiler (graphitemaster)
4950
Daniel Axtens (daxtens)
5051
Daniel Dugovic (ddugovic)

src/bitboard.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,6 @@ inline Bitboard between_bb(Square s1, Square s2) {
186186
return BetweenBB[s1][s2];
187187
}
188188

189-
190-
/// forward_ranks_bb() returns a bitboard representing the squares on the ranks in
191-
/// front of the given one, from the point of view of the given color. For instance,
192-
/// forward_ranks_bb(BLACK, SQ_D3) will return the 16 squares on ranks 1 and 2.
193-
194-
constexpr Bitboard forward_ranks_bb(Color c, Square s) {
195-
return c == WHITE ? ~Rank1BB << 8 * relative_rank(WHITE, s)
196-
: ~Rank8BB >> 8 * relative_rank(BLACK, s);
197-
}
198-
199189
/// aligned() returns true if the squares s1, s2 and s3 are aligned either on a
200190
/// straight or on a diagonal line.
201191

src/misc.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@ inline TimePoint now() {
5555
(std::chrono::steady_clock::now().time_since_epoch()).count();
5656
}
5757

58-
template<class Entry, int Size>
59-
struct HashTable {
60-
Entry* operator[](Key key) { return &table[(uint32_t)key & (Size - 1)]; }
61-
62-
private:
63-
std::vector<Entry> table = std::vector<Entry>(Size); // Allocate on the heap
64-
};
65-
6658

6759
enum SyncCout { IO_LOCK, IO_UNLOCK };
6860
std::ostream& operator<<(std::ostream&, SyncCout);

0 commit comments

Comments
 (0)