Skip to content

Commit 6889dba

Browse files
authored
Merge pull request nus-cs2103-AY2021S1#78 from li-s/branch-fix-#56
Remove editCommand from Logic
2 parents 4a8fcfc + a57ad56 commit 6889dba

File tree

10 files changed

+0
-890
lines changed

10 files changed

+0
-890
lines changed

src/main/java/seedu/address/logic/commands/EditCommand.java

Lines changed: 0 additions & 226 deletions
This file was deleted.

src/main/java/seedu/address/logic/parser/AddressBookParser.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import seedu.address.logic.commands.ClearCommand;
1111
import seedu.address.logic.commands.Command;
1212
import seedu.address.logic.commands.DeleteCommand;
13-
import seedu.address.logic.commands.EditCommand;
1413
import seedu.address.logic.commands.ExitCommand;
1514
import seedu.address.logic.commands.FindCommand;
1615
import seedu.address.logic.commands.HelpCommand;
@@ -47,9 +46,6 @@ public Command parseCommand(String userInput) throws ParseException {
4746
case AddCommand.COMMAND_WORD:
4847
return new AddCommandParser().parse(arguments);
4948

50-
case EditCommand.COMMAND_WORD:
51-
return new EditCommandParser().parse(arguments);
52-
5349
case DeleteCommand.COMMAND_WORD:
5450
return new DeleteCommandParser().parse(arguments);
5551

src/main/java/seedu/address/logic/parser/EditCommandParser.java

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/test/java/seedu/address/logic/commands/CommandTestUtil.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import seedu.address.model.Model;
2020
import seedu.address.model.person.NameContainsKeywordsPredicate;
2121
import seedu.address.model.person.Person;
22-
import seedu.address.testutil.EditPersonDescriptorBuilder;
2322

2423
/**
2524
* Contains helper methods for testing commands.
@@ -57,18 +56,6 @@ public class CommandTestUtil {
5756
public static final String PREAMBLE_WHITESPACE = "\t \r \n";
5857
public static final String PREAMBLE_NON_EMPTY = "NonEmptyPreamble";
5958

60-
public static final EditCommand.EditPersonDescriptor DESC_AMY;
61-
public static final EditCommand.EditPersonDescriptor DESC_BOB;
62-
63-
static {
64-
DESC_AMY = new EditPersonDescriptorBuilder().withName(VALID_NAME_AMY)
65-
.withPhone(VALID_PHONE_AMY).withEmail(VALID_EMAIL_AMY).withAddress(VALID_ADDRESS_AMY)
66-
.withTags(VALID_TAG_FRIEND).build();
67-
DESC_BOB = new EditPersonDescriptorBuilder().withName(VALID_NAME_BOB)
68-
.withPhone(VALID_PHONE_BOB).withEmail(VALID_EMAIL_BOB).withAddress(VALID_ADDRESS_BOB)
69-
.withTags(VALID_TAG_HUSBAND, VALID_TAG_FRIEND).build();
70-
}
71-
7259
/**
7360
* Executes the given {@code command}, confirms that <br>
7461
* - the returned {@link CommandResult} matches {@code expectedCommandResult} <br>

0 commit comments

Comments
 (0)