mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Undo a change made in #2444 that we didn't end up needing
This commit is contained in:
parent
627cc285f7
commit
4d39668743
3 changed files with 0 additions and 14 deletions
|
@ -49,15 +49,6 @@ func (self *GuiDriver) CurrentContext() types.Context {
|
||||||
return self.gui.c.CurrentContext()
|
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) {
|
func (self *GuiDriver) Fail(message string) {
|
||||||
self.gui.g.Close()
|
self.gui.g.Close()
|
||||||
// need to give the gui time to close
|
// need to give the gui time to close
|
||||||
|
|
|
@ -30,10 +30,6 @@ func (self *fakeGuiDriver) CurrentContext() types.Context {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *fakeGuiDriver) ContextForView(viewName string) types.Context {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (self *fakeGuiDriver) Fail(message string) {
|
func (self *fakeGuiDriver) Fail(message string) {
|
||||||
self.failureMessage = message
|
self.failureMessage = message
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@ type GuiDriver interface {
|
||||||
PressKey(string)
|
PressKey(string)
|
||||||
Keys() config.KeybindingConfig
|
Keys() config.KeybindingConfig
|
||||||
CurrentContext() types.Context
|
CurrentContext() types.Context
|
||||||
ContextForView(viewName string) types.Context
|
|
||||||
Fail(message string)
|
Fail(message string)
|
||||||
// These two log methods are for the sake of debugging while testing. There's no need to actually
|
// These two log methods are for the sake of debugging while testing. There's no need to actually
|
||||||
// commit any logging.
|
// commit any logging.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue