px_offset_x and px_offset_y were unused

This commit is contained in:
Gwilym Inzani 2024-02-09 21:38:43 +00:00
parent 3f607b379a
commit bd4ae7d2fb

View file

@ -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 {