removed unused function
This commit is contained in:
parent
4ddaa5a4c0
commit
87d9dca1ce
15
blacklist.go
15
blacklist.go
@ -39,21 +39,6 @@ func loadBlacklist(config []configBlacklist) map[string]bool {
|
|||||||
return domainMap
|
return domainMap
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeDuplicates(elements []string) []string {
|
|
||||||
encountered := map[string]bool{}
|
|
||||||
result := []string{}
|
|
||||||
|
|
||||||
for v := range elements {
|
|
||||||
if !encountered[elements[v]] {
|
|
||||||
encountered[elements[v]] = true
|
|
||||||
|
|
||||||
result = append(result, elements[v])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
func requestBacklist(blacklist configBlacklist) (*string, error) {
|
func requestBacklist(blacklist configBlacklist) (*string, error) {
|
||||||
if blacklist.URL != "" {
|
if blacklist.URL != "" {
|
||||||
return getBlacklistFromURL(blacklist.URL)
|
return getBlacklistFromURL(blacklist.URL)
|
||||||
|
Loading…
Reference in New Issue
Block a user