From 87d9dca1ced2928baed0aafda4592a17120c9a6e Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 30 Dec 2020 00:24:59 +0100 Subject: [PATCH] removed unused function --- blacklist.go | 15 --------------- 1 file changed, 15 deletions(-) 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)