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