mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00: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
1 changed files with 1 additions and 9 deletions
|
@ -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…
Add table
Reference in a new issue