From 4d39668743bcc42b3c09c774463e5270c9bcd85c Mon Sep 17 00:00:00 2001 From: stk Date: Sat, 18 Feb 2023 09:53:31 +0100 Subject: [PATCH] Undo a change made in #2444 that we didn't end up needing --- pkg/gui/gui_driver.go | 9 --------- pkg/integration/components/test_test.go | 4 ---- pkg/integration/types/types.go | 1 - 3 files changed, 14 deletions(-) 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.