mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
Remove unused get_palette method
This commit is contained in:
parent
77eba9b637
commit
123e8caaa4
1 changed files with 0 additions and 6 deletions
|
@ -509,12 +509,6 @@ impl SpriteId {
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
|
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
|
||||||
struct PaletteId(usize);
|
struct PaletteId(usize);
|
||||||
|
|
||||||
impl PaletteId {
|
|
||||||
fn get_palette(self) -> &'static Palette16 {
|
|
||||||
unsafe { (self.0 as *const Palette16).as_ref().unwrap_unchecked() }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Palette16 {
|
impl Palette16 {
|
||||||
fn id(&'static self) -> PaletteId {
|
fn id(&'static self) -> PaletteId {
|
||||||
PaletteId(self as *const _ as usize)
|
PaletteId(self as *const _ as usize)
|
||||||
|
|
Loading…
Add table
Reference in a new issue