From 6c1bb78d06ac395730aff0ec708e476f95fef79e Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 1 Feb 2016 22:26:57 -0800 Subject: [PATCH] Cull unused function and its unit test. Pointed out by: @slackpad --- lib/string.go | 8 -------- lib/string_test.go | 9 --------- 2 files changed, 17 deletions(-) diff --git a/lib/string.go b/lib/string.go index f37296b76a..e9f1280c7c 100644 --- a/lib/string.go +++ b/lib/string.go @@ -13,11 +13,3 @@ func StrContains(l []string, s string) bool { } return false } - -func ToLowerList(l []string) []string { - var out []string - for _, value := range l { - out = append(out, strings.ToLower(value)) - } - return out -} diff --git a/lib/string_test.go b/lib/string_test.go index f17bd90d11..e03541011b 100644 --- a/lib/string_test.go +++ b/lib/string_test.go @@ -13,12 +13,3 @@ func TestStrContains(t *testing.T) { t.Fatalf("should not contain") } } - -func TestToLowerList(t *testing.T) { - l := []string{"ABC", "Abc", "abc"} - for _, value := range ToLowerList(l) { - if value != "abc" { - t.Fatalf("failed lowercasing") - } - } -}