[position] Remove some dead code from position::piece_sets

This commit is contained in:
Eryn Wells 2024-02-11 09:57:02 -07:00
parent eb192e6dc4
commit 29eb56a5d7

View file

@ -1,7 +1,7 @@
// Eryn Wells <eryn@erynwells.me> // Eryn Wells <eryn@erynwells.me>
use chessfriend_bitboard::BitBoard; use chessfriend_bitboard::BitBoard;
use chessfriend_core::{Color, Piece, PlacedPiece, Shape, Square}; use chessfriend_core::{Color, Piece, PlacedPiece, Square};
#[derive(Debug, Eq, PartialEq)] #[derive(Debug, Eq, PartialEq)]
pub enum PlacePieceStrategy { 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 { pub(crate) fn all_pieces(&self) -> &BitBoard {
self.by_color.all() self.by_color.all()
} }