dead code removal
This commit is contained in:
parent
16eb6a1259
commit
134f922b0a
@ -112,22 +112,6 @@ impl BitBoard {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::ops::BitAnd for BitBoard {
|
|
||||||
type Output = BitBoard;
|
|
||||||
|
|
||||||
fn bitand(self, rhs: Self) -> Self::Output {
|
|
||||||
Self(self.0 & rhs.0)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl std::ops::BitOr for BitBoard {
|
|
||||||
type Output = BitBoard;
|
|
||||||
|
|
||||||
fn bitor(self, rhs: Self) -> Self::Output {
|
|
||||||
Self(self.0 | rhs.0)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
use super::{bitboard::BitBoard, piece::Piece, CoordAxis, CoordPair};
|
use super::{bitboard::BitBoard, piece::Piece, CoordAxis, CoordPair};
|
||||||
use arrayvec::ArrayVec;
|
use arrayvec::ArrayVec;
|
||||||
use rand::seq::IteratorRandom;
|
use rand::seq::IteratorRandom;
|
||||||
use std::{
|
use std::{cmp::Ordering, fmt};
|
||||||
cmp::Ordering,
|
|
||||||
fmt,
|
|
||||||
ops::{BitAndAssign, BitOrAssign},
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Map of all points on the board against some type T
|
/// Map of all points on the board against some type T
|
||||||
/// Used to index like so: example[i][j]
|
/// Used to index like so: example[i][j]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user