From a4ab5868b489a2a9b37c7f2d99f00a507d061744 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Sat, 29 Oct 2022 10:21:04 -0700 Subject: [PATCH] Remove unused unexported variable. The eraseUnderCursor variable is unused, it came in with the import of the x/crypto/ssh/terminal package at d7a7210 but is not referenced here. When this package is vendored, the unused unexported name trips warnings from tools like staticcheck. --- terminal.go | 1 - 1 file changed, 1 deletion(-) diff --git a/terminal.go b/terminal.go index 4b48a58..f636667 100644 --- a/terminal.go +++ b/terminal.go @@ -233,7 +233,6 @@ func (t *Terminal) queue(data []rune) { t.outBuf = append(t.outBuf, []byte(string(data))...) } -var eraseUnderCursor = []rune{' ', keyEscape, '[', 'D'} var space = []rune{' '} func isPrintable(key rune) bool {