File tree Expand file tree Collapse file tree
src/main/java/seedu/address/logic/parser/deliverable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import seedu .address .logic .parser .exceptions .ParseException ;
88import seedu .address .model .deliverable .deliverable .Deadline ;
99import seedu .address .model .deliverable .deliverable .Milestone ;
10- import seedu .address .model .util .Description ;
1110import 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.
You can’t perform that action at this time.
0 commit comments