summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-26 16:29:15 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitd59c0e27251f73f6928f3f4cf459b206d24271e7 (patch)
tree2bf0a1a7dbb1ea62ab4bec0e7f3e96538ad05240 /pkg/gui/context.go
parent675510ba53e3541a3b49f95f8ac1f8eb7b32a7d4 (diff)
remove dead code
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r--pkg/gui/context.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go
index 748354c3d..b4b274092 100644
--- a/pkg/gui/context.go
+++ b/pkg/gui/context.go
@@ -448,16 +448,6 @@ func (gui *Gui) setViewTabForContext(c types.Context) {
}
}
-func (gui *Gui) contextForContextKey(contextKey types.ContextKey) (types.Context, bool) {
- for _, context := range gui.State.Contexts.Flatten() {
- if context.GetKey() == contextKey {
- return context, true
- }
- }
-
- return nil, false
-}
-
func (gui *Gui) rerenderView(view *gocui.View) error {
return gui.State.ViewContextMap.Get(view.Name()).HandleRender()
}