Skip to content

Commit

Permalink
removed lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
LuMiN0uSaRc committed Nov 7, 2016
1 parent 5837f29 commit 7905e78
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/main/java/harmony/mastermind/logic/commands/ListCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ private static String formatList(ArrayList<GenericMemory> list) {
String result = listName + "\n" + LINE;
for (int i=0; i < list.size(); i++) {
String line = i + 1 + BRACKET_OPEN;
line = markSymbol(list, i, line);
line += BRACKET_CLOSE + list.get(i).getName();

result = result + "\n" + line;
Expand All @@ -128,20 +127,6 @@ private static String formatList(ArrayList<GenericMemory> list) {
return result;
}

//@author A0143378Y
// Selects and prints the appropriate marking symbol
private static String markSymbol(ArrayList<GenericMemory> list, int i,
String line) {
if (list.get(i).getState() == 1) { // show marking for overdue/over items
line += MARK;
} else if (list.get(i).getState() == 2) { // show alert marking for overdue/ongoing items
line += ALERT;
} else { // show blank space for upcoming/incomplete items
line+= BLANK;
}
return line;
}

//@author A0143378Y
// Displays list of item with the corresponding type
public static void displayType(ArrayList<GenericMemory> list, String type) {
Expand Down

0 comments on commit 7905e78

Please sign in to comment.