Skip to content

Commit

Permalink
Refactor code to remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cazh1 committed Nov 7, 2023
1 parent 49e9608 commit 24b61e1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/main/java/seedu/cafectrl/data/Chef.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ public void cookDish() {
ui.showToUser(e.getMessage());
}
}


}
5 changes: 0 additions & 5 deletions src/main/java/seedu/cafectrl/data/Sales.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ public void addOrderList(OrderList orderList) {
orderLists.add(orderList);
}

//TODO: @Zhong Heng, Remove this method if not used
public void removeOrderList(int orderListId) {
orderLists.remove(orderListId);
}

public void nextDay() {
this.daysAccounted += 1;
}
Expand Down
16 changes: 0 additions & 16 deletions src/main/java/seedu/cafectrl/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -568,22 +568,6 @@ private static OrderList setOrderList(CurrentDate currentDate, Sales sales) {
return sales.getOrderList(currentDay);
}

//@@author Cazh1
/**
* Parses the given arguments string to identify task index number.
*
* @param userInput arguments string to parse as index number
* @param command expected String name of the command called
* @return the parsed index number
* @throws ParseException if no region of the args string could be found for the index
* @throws NumberFormatException the args string region is not a valid number
*/
private static int parseArgsAsDisplayedIndex(String userInput, String command)
throws ParseException, NumberFormatException {
String formattedString = userInput.replace(command, "").trim();
return Integer.parseInt(formattedString);
}

//@@author ShaniceTang
/**
* Extracts the quantity (numeric part) from a given string containing both quantity and unit.
Expand Down

0 comments on commit 24b61e1

Please sign in to comment.