From bd4ae7d2fb75964dbf7b14949782beb29004e8dc Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Fri, 9 Feb 2024 21:38:43 +0000 Subject: [PATCH] px_offset_x and px_offset_y were unused --- agb/src/display/tiled/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/agb/src/display/tiled/mod.rs b/agb/src/display/tiled/mod.rs index c3b45c76..2d8c614e 100644 --- a/agb/src/display/tiled/mod.rs +++ b/agb/src/display/tiled/mod.rs @@ -62,12 +62,6 @@ pub(super) trait BackgroundSizePrivate: BackgroundSize + Sized { fn tile_pos_y(&self, y: i32) -> u16 { ((y as u32) & (self.height() - 1)) as u16 } - fn px_offset_x(&self, x: i32) -> u16 { - ((x as u32) & (self.width() * 8 - 1)) as u16 - } - fn px_offset_y(&self, y: i32) -> u16 { - ((y as u32) & (self.height() * 8 - 1)) as u16 - } } impl BackgroundSize for RegularBackgroundSize {