Skip to content

Commit

Permalink
coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
yungyung04 committed Mar 24, 2018
1 parent c52e305 commit 0f3cbd5
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions src/main/java/seedu/address/model/AddressBook.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public void resetData(ReadOnlyAddressBook newData) {

try {
setPersons(syncedPersonList);
setTutees(syncedPersonList);
} catch (DuplicatePersonException e) {
throw new AssertionError("AddressBooks should not have duplicate persons");
}
Expand Down Expand Up @@ -135,7 +134,7 @@ private Person syncWithMasterTagList(Person person) {
personTags.forEach(tag -> correctTagReferences.add(masterTagObjects.get(tag)));

if (person instanceof Tutee) {
return new Tutee( person.getName(), person.getPhone(), person.getEmail(), person.getAddress(),
return new Tutee(person.getName(), person.getPhone(), person.getEmail(), person.getAddress(),
((Tutee) person).getSubject(), ((Tutee) person).getGrade(),
((Tutee) person).getEducationLevel(),
((Tutee) person).getSchool(), correctTagReferences);
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/seedu/address/model/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import seedu.address.model.person.exceptions.DuplicatePersonException;
import seedu.address.model.person.exceptions.PersonNotFoundException;
import seedu.address.model.tag.Tag;
import seedu.address.model.tutee.Tutee;

/**
* The API of the Model component.
Expand Down Expand Up @@ -47,12 +46,6 @@ void updatePerson(Person target, Person editedPerson)
*/
void updateFilteredPersonList(Predicate<Person> predicate);

///**
//* Updates the filter of the filtered tutee list to filter by the given {@code predicate}.
//* @throws NullPointerException if {@code predicate} is null.
//*/
//void updateFilteredTuteeList(String category, String[] keywords);

/**
* Removes the given {@code tag} from the specified {@code person}.
*/
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/seedu/address/model/ModelManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import seedu.address.model.person.exceptions.DuplicatePersonException;
import seedu.address.model.person.exceptions.PersonNotFoundException;
import seedu.address.model.tag.Tag;
import seedu.address.model.tutee.Tutee;

/**
* Represents the in-memory model of the address book data.
Expand Down Expand Up @@ -89,8 +88,6 @@ public void deleteTag(Tag tag, Person person) {
addressBook.removeTagFromPerson(tag, person);
}

//=========== Filtered Person List Accessors =============================================================

/**
* Returns an unmodifiable view of the list of {@code Person} backed by the internal list of
* {@code addressBook}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import seedu.address.commons.util.CollectionUtil;
import seedu.address.model.person.exceptions.DuplicatePersonException;
import seedu.address.model.person.exceptions.PersonNotFoundException;
import seedu.address.model.tutee.Tutee;

/**
* A list of persons that enforces uniqueness between its elements and does not allow nulls.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import static seedu.address.storage.XmlAdaptedPerson.MISSING_FIELD_MESSAGE_FORMAT;
import static seedu.address.testutil.TypicalPersons.BENSON;
import static seedu.address.testutil.TypicalTutees.ALICETUTEE;
import static seedu.address.testutil.TypicalTutees.CARLTUTEE;

import java.util.ArrayList;
import java.util.List;
Expand Down

0 comments on commit 0f3cbd5

Please sign in to comment.