summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/window.go b/window.go
index 6135deb..66e0a31 100644
--- a/window.go
+++ b/window.go
@@ -1,12 +1,10 @@
package senpai
import (
- "hash/fnv"
"strings"
"time"
"git.sr.ht/~taiite/senpai/ui"
- "github.com/gdamore/tcell/v2"
)
const welcomeMessage = "senpai dev build. See senpai(1) for a list of keybindings and commands."
@@ -86,15 +84,3 @@ func (app *App) setBufferNumbers() {
showBufferNumbers := len(command) != 0 && strings.HasPrefix("buffer", command)
app.win.ShowBufferNumbers(showBufferNumbers)
}
-
-func identColor(ident string) tcell.Color {
- h := fnv.New32()
- _, _ = h.Write([]byte(ident))
- return tcell.Color((h.Sum32()%15)+1) + tcell.ColorValid
-}
-
-func identString(ident string) ui.StyledString {
- color := identColor(ident)
- style := tcell.StyleDefault.Foreground(color)
- return ui.Styled(ident, style)
-}