[position] Remove some dead code from position::piece_sets
This commit is contained in:
parent
eb192e6dc4
commit
29eb56a5d7
1 changed files with 1 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
// Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
use chessfriend_bitboard::BitBoard;
|
||||
use chessfriend_core::{Color, Piece, PlacedPiece, Shape, Square};
|
||||
use chessfriend_core::{Color, Piece, PlacedPiece, Square};
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub enum PlacePieceStrategy {
|
||||
|
@ -51,11 +51,6 @@ impl PieceBitBoards {
|
|||
}
|
||||
}
|
||||
|
||||
pub(super) fn king(&self, color: Color) -> &BitBoard {
|
||||
self.by_color_and_shape
|
||||
.bitboard_for_piece(&Piece::new(color, Shape::King))
|
||||
}
|
||||
|
||||
pub(crate) fn all_pieces(&self) -> &BitBoard {
|
||||
self.by_color.all()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue