Skip to content

Commit

Permalink
Merge pull request #93 from Raghava-Chittidi/branch-rag-remove-unused…
Browse files Browse the repository at this point in the history
…-files

Remove unused files
  • Loading branch information
ZweZeya authored Oct 17, 2024
2 parents 976ccb0 + 4e97978 commit c182828
Show file tree
Hide file tree
Showing 31 changed files with 70 additions and 1,103 deletions.
5 changes: 3 additions & 2 deletions src/main/java/seedu/address/logic/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ public class Messages {

public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command";
public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s";
public static final String MESSAGE_INVALID_PERSON_DISPLAYED_INDEX = "The person index provided is invalid";
public static final String MESSAGE_PERSONS_LISTED_OVERVIEW = "%1$d persons listed!";
public static final String MESSAGE_INVALID_INTERNSHIP_APPLICATION_DISPLAYED_INDEX =
"The internship application index provided is invalid";
public static final String MESSAGE_INTERNSHIP_APPLICATIONS_LISTED_OVERVIEW = "%1$d internship applications listed!";
public static final String MESSAGE_DUPLICATE_FIELDS =
"Multiple values specified for the following single-valued field(s): ";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public CommandResult execute(Model<InternshipApplication> model) throws CommandE
List<InternshipApplication> lastShownList = model.getFilteredList();

if (targetIndex.getZeroBased() >= lastShownList.size()) {
throw new CommandException(Messages.MESSAGE_INVALID_PERSON_DISPLAYED_INDEX);
throw new CommandException(Messages.MESSAGE_INVALID_INTERNSHIP_APPLICATION_DISPLAYED_INDEX);
}

InternshipApplication internshipApplicationToDelete = lastShownList.get(targetIndex.getZeroBased());
Expand Down
218 changes: 0 additions & 218 deletions src/main/java/seedu/address/logic/commands/EditCommand.java

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/seedu/address/logic/commands/FindCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public FindCommand(NameContainsKeywordsPredicate predicate) {
public CommandResult execute(Model<InternshipApplication> model) {
requireNonNull(model);
model.updateFilteredList(predicate);
return new CommandResult(
String.format(Messages.MESSAGE_PERSONS_LISTED_OVERVIEW, model.getFilteredList().size()));
return new CommandResult(String.format(Messages.MESSAGE_INTERNSHIP_APPLICATIONS_LISTED_OVERVIEW,
model.getFilteredList().size()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import seedu.address.logic.commands.ClearCommand;
import seedu.address.logic.commands.Command;
import seedu.address.logic.commands.DeleteCommand;
import seedu.address.logic.commands.EditCommand;
import seedu.address.logic.commands.ExitCommand;
import seedu.address.logic.commands.FindCommand;
import seedu.address.logic.commands.HelpCommand;
Expand Down Expand Up @@ -56,9 +55,6 @@ public Command parseCommand(String userInput) throws ParseException {
case AddCommand.COMMAND_WORD:
return new AddCommandParser().parse(arguments);

case EditCommand.COMMAND_WORD:
return new EditCommandParser().parse(arguments);

case DeleteCommand.COMMAND_WORD:
return new DeleteCommandParser().parse(arguments);

Expand Down
1 change: 0 additions & 1 deletion src/main/java/seedu/address/logic/parser/CliSyntax.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ public class CliSyntax {

/* Prefix definitions */
public static final Prefix PREFIX_NAME = new Prefix("n/");
public static final Prefix PREFIX_PHONE = new Prefix("p/");
public static final Prefix PREFIX_EMAIL = new Prefix("e/");
public static final Prefix PREFIX_ADDRESS = new Prefix("a/");
public static final Prefix PREFIX_TAG = new Prefix("t/");
Expand Down
79 changes: 0 additions & 79 deletions src/main/java/seedu/address/logic/parser/EditCommandParser.java

This file was deleted.

Loading

0 comments on commit c182828

Please sign in to comment.