mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Removed two unused classes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user