From 36c54854f8db5d6ddd597b81111a39f9e5001c33 Mon Sep 17 00:00:00 2001 From: "Damith C. Rajapakse" Date: Tue, 7 Feb 2017 22:17:15 +0800 Subject: [PATCH] Remove unused *tag methods from AddressBook Remove unused addTag() removeTag() and containsTag() from AddressBook class --- src/seedu/addressbook/data/AddressBook.java | 25 --------------------- 1 file changed, 25 deletions(-) diff --git a/src/seedu/addressbook/data/AddressBook.java b/src/seedu/addressbook/data/AddressBook.java index b3ab0dfeb..7af05d271 100644 --- a/src/seedu/addressbook/data/AddressBook.java +++ b/src/seedu/addressbook/data/AddressBook.java @@ -82,15 +82,6 @@ public void addPerson(Person toAdd) throws DuplicatePersonException { allPersons.add(toAdd); } - /** - * Adds a tag to the list of tags present in the address book. - * - * @throws DuplicateTagException if an equivalent tag already exists. - */ - public void addTag(Tag toAdd) throws DuplicateTagException { - allTags.add(toAdd); - } - /** * Checks if an equivalent person exists in the address book. */ @@ -98,13 +89,6 @@ public boolean containsPerson(ReadOnlyPerson key) { return allPersons.contains(key); } - /** - * Checks if an equivalent person exists in the address book. - */ - public boolean containsTag(Tag key) { - return allTags.contains(key); - } - /** * Removes the equivalent person from the address book. * @@ -114,15 +98,6 @@ public void removePerson(ReadOnlyPerson toRemove) throws PersonNotFoundException allPersons.remove(toRemove); } - /** - * Removes the equivalent Tag from the address book. - * - * @throws TagNotFoundException if no such Tag could be found. - */ - public void removeTag(Tag toRemove) throws TagNotFoundException { - allTags.remove(toRemove); - } - /** * Clears all persons and tags from the address book. */