From 27be2dd797fc7087c5e362c22c1f30fc377ea0e9 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 11 Jun 2015 16:57:42 +0200 Subject: Streamlined Card class, cards are now stored in a hashmap, had to write a method to parse full card set json --- src/eu/equalparts/cardbase/standalone/CardbaseCLI.java | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/eu/equalparts/cardbase/standalone') diff --git a/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java b/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java index f491f6c..be3616a 100644 --- a/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java +++ b/src/eu/equalparts/cardbase/standalone/CardbaseCLI.java @@ -177,8 +177,6 @@ public class CardbaseCLI { } else if (command.equalsIgnoreCase("remove") || command.equalsIgnoreCase("rm")) { remove(args); - } else if (command.equalsIgnoreCase("sort")) { - sort(args); } else { add(command, args); } @@ -410,15 +408,6 @@ public class CardbaseCLI { } } - /** - * Sort the cardbase by a specified parameter. - * - * @param args the ordering to sort by. - */ - public void sort(String[] args) { - cardbase.sortByName(); - } - /** * Add the specified count of the specified card * to the cardbase. -- cgit v1.2.3