From 26ae79e17d7158acd5a92c1b5b64688910db4987 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 13 Jul 2024 11:54:58 -0700 Subject: [PATCH] [board] Remove explicit #[inline] from several Board methods Trust the compiler to inline where appropriate, until I know otherwise. --- board/src/board.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/board/src/board.rs b/board/src/board.rs index 308cbf7..02ab7af 100644 --- a/board/src/board.rs +++ b/board/src/board.rs @@ -107,25 +107,21 @@ impl Board { } /// A [`BitBoard`] representing the set of squares containing a piece. - #[inline] #[must_use] pub fn occupied_squares(&self) -> &BitBoard { self.pieces.all_pieces() } - #[inline] #[must_use] pub fn friendly_pieces(&self) -> &BitBoard { self.pieces.all_pieces_of_color(self.player_to_move) } - #[inline] #[must_use] pub fn opposing_pieces(&self) -> &BitBoard { self.pieces.all_pieces_of_color(self.player_to_move.other()) } - #[inline] #[must_use] pub fn all_pieces(&self) -> (&BitBoard, &BitBoard) { (self.friendly_pieces(), self.opposing_pieces()) @@ -133,7 +129,6 @@ impl Board { /// A [`BitBoard`] representing the set of squares containing a piece. This set is the inverse of /// `Board::occupied_squares`. - #[inline] #[must_use] pub fn empty_squares(&self) -> BitBoard { !self.occupied_squares()