diff --git a/pkg/gui/gui_driver.go b/pkg/gui/gui_driver.go index 239d1a43e..cf1e3bbb4 100644 --- a/pkg/gui/gui_driver.go +++ b/pkg/gui/gui_driver.go @@ -49,15 +49,6 @@ func (self *GuiDriver) CurrentContext() types.Context { return self.gui.c.CurrentContext() } -func (self *GuiDriver) ContextForView(viewName string) types.Context { - context, ok := self.gui.contextForView(viewName) - if !ok { - return nil - } - - return context -} - func (self *GuiDriver) Fail(message string) { self.gui.g.Close() // need to give the gui time to close diff --git a/pkg/integration/components/test_test.go b/pkg/integration/components/test_test.go index c40fc3368..08823f525 100644 --- a/pkg/integration/components/test_test.go +++ b/pkg/integration/components/test_test.go @@ -30,10 +30,6 @@ func (self *fakeGuiDriver) CurrentContext() types.Context { return nil } -func (self *fakeGuiDriver) ContextForView(viewName string) types.Context { - return nil -} - func (self *fakeGuiDriver) Fail(message string) { self.failureMessage = message } diff --git a/pkg/integration/types/types.go b/pkg/integration/types/types.go index a26ac67af..5326054d2 100644 --- a/pkg/integration/types/types.go +++ b/pkg/integration/types/types.go @@ -20,7 +20,6 @@ type GuiDriver interface { PressKey(string) Keys() config.KeybindingConfig CurrentContext() types.Context - ContextForView(viewName string) types.Context Fail(message string) // These two log methods are for the sake of debugging while testing. There's no need to actually // commit any logging.