aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/ConversationList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/gultsch/chat/ConversationList.java')
-rw-r--r--src/de/gultsch/chat/ConversationList.java17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/de/gultsch/chat/ConversationList.java b/src/de/gultsch/chat/ConversationList.java
index 205d3549..ac5f9230 100644
--- a/src/de/gultsch/chat/ConversationList.java
+++ b/src/de/gultsch/chat/ConversationList.java
@@ -4,6 +4,8 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
+import de.gultsch.chat.entities.Conversation;
+
public class ConversationList extends ArrayList<Conversation> {
private static final long serialVersionUID = 3661496589984289968L;
@@ -24,21 +26,6 @@ public class ConversationList extends ArrayList<Conversation> {
this.selectedConversationPosition = selectedConversation;
}
- public void sort() {
- Conversation selectedConversation = this.get(selectedConversationPosition);
- //sort this
- Collections.sort(this, new Comparator<Conversation>() {
-
- @Override
- public int compare(Conversation lhs, Conversation rhs) {
- // TODO Auto-generated method stub
- return 0;
- }
- });
-
- this.selectedConversationPosition = this.indexOf(selectedConversation);
- }
-
public synchronized int addAndReturnPosition(Conversation conversation) {
this.add(conversation);
return size() - 1;