summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context.go
diff options
context:
space:
mode:
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()
}