Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Remove the compareTo implementation from SideMenuItem. We d…
…on't perform any operations that require it.
  • Loading branch information
lioncash committed Sep 4, 2013
1 parent 38304a7 commit b94a462
Showing 1 changed file with 1 addition and 9 deletions.
Expand Up @@ -10,7 +10,7 @@
/**
* 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;
Expand Down Expand Up @@ -46,13 +46,5 @@ public int getID()
{
return id;
}

public int compareTo(SideMenuItem o)
{
if (name != null)
return name.toLowerCase().compareTo(o.getName().toLowerCase());
else
throw new IllegalArgumentException();
}
}

0 comments on commit b94a462

Please sign in to comment.