1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Delete unused function

This commit is contained in:
Chris Cummer
2018-06-24 07:52:42 -07:00
parent 2fec736935
commit 1b32dd8277
2 changed files with 3 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ import (
"github.com/gdamore/tcell"
)
var Colors = map[string]tcell.Color{
var colors = map[string]tcell.Color{
"aliceblue": tcell.ColorAliceBlue,
"antiquewhite": tcell.ColorAntiqueWhite,
"aqua": tcell.ColorAqua,
@@ -148,8 +148,8 @@ var Colors = map[string]tcell.Color{
}
func ColorFor(label string) tcell.Color {
if _, ok := Colors[label]; ok {
return Colors[label]
if _, ok := colors[label]; ok {
return colors[label]
} else {
return tcell.ColorGreen
}