Skip to content

Commit

Permalink
Remove number of tasks in DateItem header
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinlim committed Oct 13, 2016
1 parent 921ff5c commit f3c019a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/seedu/todo/ui/components/TaskListDateItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javafx.stage.Stage;
import seedu.todo.commons.EphemeralDB;
import seedu.todo.commons.util.DateUtil;
import seedu.todo.commons.util.StringUtil;
import seedu.todo.models.Task;
import seedu.todo.models.Event;
import seedu.todo.ui.UiPartLoader;
Expand All @@ -20,8 +19,6 @@ public class TaskListDateItem extends MultiComponent {

private static final String FXML_PATH = "components/TaskListDateItem.fxml";
private static EphemeralDB ephemeralDb = EphemeralDB.getInstance();
private static final String SINGLE_TASK_LABEL = "task";
private static final String PURAL_TASK_LABEL = "tasks";
private static final String NO_DATE_STRING = "No Deadline";

// Props
Expand Down Expand Up @@ -54,9 +51,7 @@ public void componentDidMount() {
if (dateTime == TaskList.NO_DATE_VALUE) {
dateHeaderString = NO_DATE_STRING;
} else {
dateHeaderString = String.format("%s (%d %s)",
DateUtil.formatDay(dateTime), tasks.size(),
StringUtil.pluralizer(tasks.size(), SINGLE_TASK_LABEL, PURAL_TASK_LABEL));
dateHeaderString = DateUtil.formatDay(dateTime);
}

dateHeader.setText(dateHeaderString);
Expand Down

0 comments on commit f3c019a

Please sign in to comment.