[position] Remove unused CapturesList::last()
This commit is contained in:
parent
3c31f900ea
commit
6a8cc0dc5b
1 changed files with 0 additions and 5 deletions
|
@ -8,11 +8,6 @@ use chessfriend_core::{Color, Piece};
|
|||
pub(crate) struct CapturesList([Vec<Piece>; Color::NUM]);
|
||||
|
||||
impl CapturesList {
|
||||
#[cfg(test)]
|
||||
pub fn last(&self, color: Color) -> Option<&Piece> {
|
||||
self.0[color as usize].last()
|
||||
}
|
||||
|
||||
pub fn push(&mut self, color: Color, piece: Piece) {
|
||||
self.0[color as usize].push(piece);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue