Skip to content

Commit f6bd187

Browse files
committed
Remove unused peopleContainer
1 parent 2f17ce0 commit f6bd187

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/groovy/nebula/plugin/contacts/ContactsExtension.groovy

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ package nebula.plugin.contacts
22

33
import groovy.lang.DelegatesTo
44
import org.gradle.api.Action
5-
import org.gradle.api.NamedDomainObjectContainer
65

76
/**
8-
* Holds Person for a project.
9-
* TODO repeat a name and guarantee uniqueness
7+
* Holds contacts for a project.
108
*/
119
class ContactsExtension {
1210

1311
private final String emailPattern = /[_A-Za-z0-9-]+(.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(.[A-Za-z0-9]+)*(.[A-Za-z]{2,})/
1412

15-
NamedDomainObjectContainer<Contact> peopleContainer
1613
final LinkedHashMap<String, Contact> people
1714
boolean validateEmails
1815

@@ -70,7 +67,7 @@ class ContactsExtension {
7067
if(validateEmails)
7168
validateEmail(email)
7269
def person = people.containsKey(email) ? people.get(email) : new Contact(email)
73-
people.put(email, person) // Redundant if already there, just trying to follow model below
70+
people.put(email, person)
7471
return person
7572
}
7673

0 commit comments

Comments
 (0)