removed unused function

This commit is contained in:
Niklas 2020-12-30 00:24:59 +01:00
parent 4ddaa5a4c0
commit 87d9dca1ce

View File

@ -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)