diff --git a/blacklist.go b/blacklist.go index fbc4303..00ace93 100644 --- a/blacklist.go +++ b/blacklist.go @@ -39,21 +39,6 @@ func loadBlacklist(config []configBlacklist) map[string]bool { 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) { if blacklist.URL != "" { return getBlacklistFromURL(blacklist.URL)