Skip to content

Commit

Permalink
deleted unused declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannice committed Nov 8, 2023
1 parent f72b382 commit 31d251f
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class FindPlanCommand extends Command {
+ "friend. \nParameters: FRIEND_NAME \n"
+ "Example: " + COMMAND_WORD + " Elijah Chia";

public static final String MESSAGE_SYNTAX = "Syntax: find-plan FRIEND_NAME";
private final Name friendName;

public FindPlanCommand(Name friendName) {
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/seedu/address/model/UserPrefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ public void setGuiSettings(GuiSettings guiSettings) {
public Path getAddressBookFilePath() {
return addressBookFilePath;
}
public Path getPlanBookFilePath() {
return planBookFilePath;
}

public void setAddressBookFilePath(Path addressBookFilePath) {
requireNonNull(addressBookFilePath);
Expand Down
1 change: 0 additions & 1 deletion src/main/java/seedu/address/model/plan/Plan.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public String toString() {
String friendName = friend.getName().toString();
String dateTimeString = this.dateTime.toString();
String planNameString = this.planName.toString();
String planCompleteString = this.isComplete.toString();
return '[' + planNameString + " with " + friendName + " at " + dateTimeString + ']';
}

Expand Down
5 changes: 0 additions & 5 deletions src/main/java/seedu/address/ui/PersonListPanel.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
package seedu.address.ui;

import java.util.logging.Logger;

import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.layout.Region;
import seedu.address.commons.core.LogsCenter;
import seedu.address.model.person.Person;

/**
* Panel containing the list of persons.
*/
public class PersonListPanel extends UiPart<Region> {
private static final String FXML = "PersonListPanel.fxml";
private final Logger logger = LogsCenter.getLogger(PersonListPanel.class);

@FXML
private ListView<Person> personListView;

Expand Down
5 changes: 0 additions & 5 deletions src/main/java/seedu/address/ui/PlanListPanel.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
package seedu.address.ui;

import java.util.logging.Logger;

import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.layout.Region;
import seedu.address.commons.core.LogsCenter;
import seedu.address.model.plan.Plan;

/**
* Panel containing the list of plans.
*/
public class PlanListPanel extends UiPart<Region> {
private static final String FXML = "PlanListPanel.fxml";
private final Logger logger = LogsCenter.getLogger(PlanListPanel.class);

@FXML
private ListView<Plan> planListView;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,4 @@ public void toStringMethod() {
String expected = CompletePlanCommand.class.getCanonicalName() + "{targetIndex=" + targetIndex + "}";
assertEquals(expected, completePlanCommand.toString());
}

/**
* Updates {@code model}'s filtered list to show no plan.
*/
private void showNoPlan(Model model) {
model.updateFilteredPlanList(p -> false);

assertTrue(model.getFilteredPlanList().isEmpty());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,4 @@ public void toStringMethod() {
String expected = UncompletePlanCommand.class.getCanonicalName() + "{targetIndex=" + targetIndex + "}";
assertEquals(expected, uncompletePlanCommand.toString());
}

/**
* Updates {@code model}'s filtered list to show no one.
*/
private void showNoPlan(Model model) {
model.updateFilteredPlanList(p -> false);

assertTrue(model.getFilteredPlanList().isEmpty());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ public EditPlanDescriptorBuilder() {
descriptor = new EditPlanDescriptor();
}

public EditPlanDescriptorBuilder(EditPlanDescriptor descriptor) {
this.descriptor = new EditPlanDescriptor(descriptor);
}

/**
* Returns an {@code EditPersonDescriptor} with fields containing {@code person}'s details
*/
Expand Down
8 changes: 0 additions & 8 deletions src/test/java/seedu/address/testutil/PlanBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ public PlanBuilder withPlanFriend(Person friend) {
return this;
}

/**
* Sets the {@code isComplete} of the {@code Plan} that we are building.
*/
public PlanBuilder withPlanCompletionStatus(Boolean isComplete) {
this.isComplete = isComplete;
return this;
}

public Plan build() {
return new Plan(planName, planDateTime, friend, isComplete);
}
Expand Down

0 comments on commit 31d251f

Please sign in to comment.