Skip to content

Commit

Permalink
TaskList: removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
yisiox committed Feb 17, 2024
1 parent 667694e commit ef760d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/earl/util/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ public Task get(int i) {
}

/** Returns the added task itself. */
public Task add(Task task) {
public void add(Task task) {
tasks.add(task);
return task;
}

public Task delete(int idx) {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/earl/util/stubs/TaskListStub.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public Task get(int idx) {
}

@Override
public Task add(Task task) {
return new TaskStub();
public void add(Task task) {
return;
}

@Override
Expand Down

0 comments on commit ef760d6

Please sign in to comment.