From fd75cc0392e3265f3ab10ea7657292d785202bd1 Mon Sep 17 00:00:00 2001 From: x3chillax Date: Wed, 18 Sep 2019 20:28:04 +0800 Subject: [PATCH 1/2] B-ViewSchedules --- src/main/java/duke/command/ViewCommand.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/duke/command/ViewCommand.java b/src/main/java/duke/command/ViewCommand.java index 3561801a15..c62111f3d1 100644 --- a/src/main/java/duke/command/ViewCommand.java +++ b/src/main/java/duke/command/ViewCommand.java @@ -27,7 +27,6 @@ public void execute(TaskList taskList, Ui ui, Storage storage) { int i = 1; try { for (Task task : taskList.getAllTasks()) { - //task.setNewDate(); if ((task.getCurrentDate()).equals(toView)) { //needs work on this part. comparing of time use Date always takes into account time 0000 sb.append("\t ").append(i++).append(".").append(task.toString()); From 5e7d4cf14562f4548a567a9e548f9bf117015e75 Mon Sep 17 00:00:00 2001 From: x3chillax Date: Wed, 18 Sep 2019 21:05:19 +0800 Subject: [PATCH 2/2] B-ViewSchedules --- src/main/java/duke/parser/Parser.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/duke/parser/Parser.java b/src/main/java/duke/parser/Parser.java index 4e1e87cc7d..b90becf411 100644 --- a/src/main/java/duke/parser/Parser.java +++ b/src/main/java/duke/parser/Parser.java @@ -76,7 +76,6 @@ public static Command parse(String fullCommand) throws DukeException { String[] getUntil = splitted[1].split("/until ", 2); if (getUntil.length < 2) throw new DukeException("The description of a snooze must contain /until date!"); - //return new Snooze(getUntil[0], getUntil[1]); case "view": if ((splitted.length == 1) || splitted[1].isBlank()) { throw new DukeException("The description of a view must contain date!");