remove unused functions

This commit is contained in:
2025-03-04 14:11:04 -05:00
parent 445f94daf0
commit 2dc9bbd822

View File

@@ -90,23 +90,14 @@ impl BitBoard {
Self(mask) 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 // Create a BitBoard from a single coordinate
pub const fn from_coord(coord: CoordPair) -> Self { pub const fn from_coord(coord: CoordPair) -> Self {
Self(1 << coord.0) Self(1 << coord.0)
} }
pub fn intersects(self, other: Self) -> bool { pub const fn intersects(self, other: Self) -> bool {
(self.0 & other.0) > 0 (self.0 & other.0) > 0
} }
pub fn union(self, other: Self) -> Self {
self | other
}
} }
impl std::ops::Not for BitBoard { impl std::ops::Not for BitBoard {