-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AddressBook: remove unused containsTag()
AddressBook#containsTag() checks if the master list of Tags contains a Tag with the same value as the given Tag. This method is not used anywhere, and can be classified as unused code. There are no commands that support it, and it is also not part of any learning objectives. While it is used in tests, its functionality is superseded by AddressBookTest#isTagObjectInAddressBookList(), which checks if the master list of Tags from a given AddressBook contains the given Tag object by reference. AddressBookTest#isTagObjectInAddressBookList() checks if a Tag value is in the master list like AddressBook#containsTag() does, and also checks that Person objects points to Tag objects in the master Tag list instead of keeping its own copies of Tags. AddressBook#containsTag() should be removed as unused code contributes to maintenance and comprehension overheads. Let's remove AddressBook#containsTag().
- Loading branch information
1 parent
4e3fac9
commit 022c23d
Showing
2 changed files
with
3 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters