mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Remove unused get_palette method
This commit is contained in:
parent
77eba9b637
commit
123e8caaa4
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue