Cull unused function and its unit test.

Pointed out by: @slackpad
This commit is contained in:
Sean Chittenden 2016-02-01 22:26:57 -08:00
parent 6452b498e1
commit 5fe7bcfb5b
2 changed files with 0 additions and 17 deletions

View File

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

View File

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