mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
[Android] Remove the compareTo implementation from SideMenuItem. We don't perform any operations that require it.
This commit is contained in:
parent
38304a7e42
commit
b94a462fca
@ -10,7 +10,7 @@ package org.dolphinemu.dolphinemu.sidemenu;
|
||||
/**
|
||||
* Represents an item that goes in the sidemenu of the app.
|
||||
*/
|
||||
public final class SideMenuItem implements Comparable<SideMenuItem>
|
||||
public final class SideMenuItem
|
||||
{
|
||||
private final String name;
|
||||
private final int id;
|
||||
@ -46,13 +46,5 @@ public final class SideMenuItem implements Comparable<SideMenuItem>
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public int compareTo(SideMenuItem o)
|
||||
{
|
||||
if (name != null)
|
||||
return name.toLowerCase().compareTo(o.getName().toLowerCase());
|
||||
else
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user