summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <suror@gmx.co.uk>2011-07-15 17:50:48 +0100
committerementalo <suror@gmx.co.uk>2011-07-15 17:50:48 +0100
commitaf364b4bb40df4190cdab31b12bdeb301841f7be (patch)
treeea616f2f020cda0525d630020e7085c975e24677
parentcd4c58cfcb21c60fc07752eabb6f6d19aad31528 (diff)
downloadEssentials-af364b4bb40df4190cdab31b12bdeb301841f7be.tar
Essentials-af364b4bb40df4190cdab31b12bdeb301841f7be.tar.gz
Essentials-af364b4bb40df4190cdab31b12bdeb301841f7be.tar.lz
Essentials-af364b4bb40df4190cdab31b12bdeb301841f7be.tar.xz
Essentials-af364b4bb40df4190cdab31b12bdeb301841f7be.zip
actually remove sorting methods
-rw-r--r--Essentials/src/com/earth2me/essentials/Util.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Util.java b/Essentials/src/com/earth2me/essentials/Util.java
index c55623871..7ba0c4b56 100644
--- a/Essentials/src/com/earth2me/essentials/Util.java
+++ b/Essentials/src/com/earth2me/essentials/Util.java
@@ -451,35 +451,4 @@ public class Util
logger.log(Level.WARNING, String.format("Translation file %s does not contain all translation keys.", currentLocale.toString()));
}
}
-
- public static List sortMapByValueDesc(final Map m) {
- List keys = new ArrayList();
- keys.addAll(m.keySet());
- Collections.sort(keys, Collections.reverseOrder(new Comparator() {
- public int compare(Object o1, Object o2) {
- Object v1 = m.get(o1);
- Object v2 = m.get(o2);
- if (v1 == null) {
- return (v2 == null) ? 0 : 1;
- }
- else if (v1 instanceof Comparable) {
- return ((Comparable) v1).compareTo(v2);
- }
- else {
- return 0;
- }
- }
- }));
- return keys;
- }
-
- public static List<Object> getKeysFromValue(Map<?, ?> map, Object value){
- List <Object>list = new ArrayList<Object>();
- for(Object o:map.keySet()){
- if(map.get(o).equals(value)) {
- list.add(o);
- }
- }
- return list;
- }
}