Skip to content

Commit

Permalink
Remove duplicate in Product
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrandong committed Mar 19, 2024
1 parent e696a61 commit 2186b94
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/seedu/address/model/order/Product.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ public Product(@JsonProperty("order") String name) {
this.name = name;
}

/**
* Returns true if a given string is a valid name.
*/
public static boolean isValidProduct(String test) {
return test.matches(VALIDATION_REGEX);
}

@Override
public String toString() {
return this.name;
Expand Down

0 comments on commit 2186b94

Please sign in to comment.