Skip to content

Commit 69435ed

Browse files
committed
Remove unused method
1 parent 5243166 commit 69435ed

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/main/java/seedu/address/logic/parser/deliverable/ParserUtil.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import seedu.address.logic.parser.exceptions.ParseException;
88
import seedu.address.model.deliverable.deliverable.Deadline;
99
import seedu.address.model.deliverable.deliverable.Milestone;
10-
import seedu.address.model.util.Description;
1110
import seedu.address.model.util.Title;
1211

1312
/**
@@ -60,21 +59,6 @@ public static Milestone parseMilestone(String milestone) throws ParseException {
6059
return new Milestone(trimmedMilestone);
6160
}
6261

63-
/**
64-
* Parses a {@code String description} into a {@code Description}.
65-
* Leading and trailing whitespaces will be trimmed.
66-
*
67-
* @throws ParseException if the given {@code phone} is invalid.
68-
*/
69-
public static Description parseDescription(String description) throws ParseException {
70-
requireNonNull(description);
71-
String trimmedDescription = description.trim();
72-
if (!Description.isValidDescription(trimmedDescription)) {
73-
throw new ParseException(Description.MESSAGE_CONSTRAINTS);
74-
}
75-
return new Description(trimmedDescription);
76-
}
77-
7862
/**
7963
* Parses a {@code String deadline} into a {@code Deadline}.
8064
* Leading and trailing whitespaces will be trimmed.

0 commit comments

Comments
 (0)