From 2dc9bbd822846b632779481a79a6048ab223c40f Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 4 Mar 2025 14:11:04 -0500 Subject: [PATCH] remove unused functions --- src/repr/bitboard.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/repr/bitboard.rs b/src/repr/bitboard.rs index 3e9a359..0358e29 100644 --- a/src/repr/bitboard.rs +++ b/src/repr/bitboard.rs @@ -90,23 +90,14 @@ impl BitBoard { Self(mask) } - // Check if a BitBoard contains a coordinate - pub const fn contains(&self, coord: CoordPair) -> bool { - (self.0 & (1 << coord.0)) != 0 - } - // Create a BitBoard from a single coordinate pub const fn from_coord(coord: CoordPair) -> Self { Self(1 << coord.0) } - pub fn intersects(self, other: Self) -> bool { + pub const fn intersects(self, other: Self) -> bool { (self.0 & other.0) > 0 } - - pub fn union(self, other: Self) -> Self { - self | other - } } impl std::ops::Not for BitBoard {