Remove unused get_palette method

This commit is contained in:
Gwilym Kuiper 2022-03-23 20:40:15 +00:00
parent 77eba9b637
commit 123e8caaa4

View file

@ -509,12 +509,6 @@ impl SpriteId {
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
struct PaletteId(usize);
impl PaletteId {
fn get_palette(self) -> &'static Palette16 {
unsafe { (self.0 as *const Palette16).as_ref().unwrap_unchecked() }
}
}
impl Palette16 {
fn id(&'static self) -> PaletteId {
PaletteId(self as *const _ as usize)