From e19a2488153371882c87fa19fdb994ab724c6dc7 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 9 Oct 2023 14:31:22 -0500 Subject: [PATCH] io/key: delete Event.String The String method doesn't add anything in addition to the default Go formatting of the type. Signed-off-by: Elias Naur --- io/key/key.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/io/key/key.go b/io/key/key.go index 18d27bc8..5ba60b7b 100644 --- a/io/key/key.go +++ b/io/key/key.go @@ -11,7 +11,6 @@ package key import ( "encoding/binary" - "fmt" "math" "strings" @@ -367,10 +366,6 @@ func (FocusEvent) ImplementsEvent() {} func (SnippetEvent) ImplementsEvent() {} func (SelectionEvent) ImplementsEvent() {} -func (e Event) String() string { - return fmt.Sprintf("%v %v %v}", e.Name, e.Modifiers, e.State) -} - func (m Modifiers) String() string { var strs []string if m.Contain(ModCtrl) {