Removed two unused classes.

This commit is contained in:
akwizgran
2014-02-08 15:13:17 +00:00
parent 8e5aacc384
commit 4c6d79c474
2 changed files with 0 additions and 36 deletions

View File

@@ -1,18 +0,0 @@
package org.briarproject.android.groups;
import org.briarproject.api.messaging.Group;
class GroupItem {
static final GroupItem NEW = new GroupItem(null);
private final Group group;
GroupItem(Group group) {
this.group = group;
}
Group getGroup() {
return group;
}
}

View File

@@ -1,18 +0,0 @@
package org.briarproject.android.groups;
import static org.briarproject.android.groups.GroupItem.NEW;
import java.util.Comparator;
class GroupItemComparator implements Comparator<GroupItem> {
static final GroupItemComparator INSTANCE = new GroupItemComparator();
public int compare(GroupItem a, GroupItem b) {
if(a == b) return 0;
if(a == NEW) return 1;
if(b == NEW) return -1;
String aName = a.getGroup().getName(), bName = b.getGroup().getName();
return String.CASE_INSENSITIVE_ORDER.compare(aName, bName);
}
}