px_offset_x and px_offset_y were unused (#551)

These methods were unused and breaking the build

- [x] Changelog updated / no changelog update needed
This commit is contained in:
Gwilym Inzani 2024-02-09 21:49:21 +00:00 committed by GitHub
commit e73d864d07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,12 +62,6 @@ pub(super) trait BackgroundSizePrivate: BackgroundSize + Sized {
fn tile_pos_y(&self, y: i32) -> u16 { fn tile_pos_y(&self, y: i32) -> u16 {
((y as u32) & (self.height() - 1)) as 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 { impl BackgroundSize for RegularBackgroundSize {