diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 19:20:40 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | 798d3e2d54e828f25ed4aadcefff11593fa23e10 (patch) | |
tree | 3b68eedd78e13836da8d7b8c46c5862c458f02a0 /pkg/gui/stash_panel.go | |
parent | e8f99c3326f543b713cafb6420a5b9c3c9b4d50c (diff) |
get rid of these positively ghastly method signatures
Diffstat (limited to 'pkg/gui/stash_panel.go')
-rw-r--r-- | pkg/gui/stash_panel.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkg/gui/stash_panel.go b/pkg/gui/stash_panel.go index d60ffae2a..deaf5790e 100644 --- a/pkg/gui/stash_panel.go +++ b/pkg/gui/stash_panel.go @@ -1,7 +1,6 @@ package gui import ( - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -45,7 +44,7 @@ func (gui *Gui) refreshStashEntries() error { // specific functions -func (gui *Gui) handleStashApply(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleStashApply() error { skipStashWarning := gui.Config.GetUserConfig().Gui.SkipStashWarning apply := func() error { @@ -65,7 +64,7 @@ func (gui *Gui) handleStashApply(g *gocui.Gui, v *gocui.View) error { }) } -func (gui *Gui) handleStashPop(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleStashPop() error { skipStashWarning := gui.Config.GetUserConfig().Gui.SkipStashWarning pop := func() error { @@ -85,7 +84,7 @@ func (gui *Gui) handleStashPop(g *gocui.Gui, v *gocui.View) error { }) } -func (gui *Gui) handleStashDrop(g *gocui.Gui, v *gocui.View) error { +func (gui *Gui) handleStashDrop() error { return gui.ask(askOpts{ title: gui.Tr.StashDrop, prompt: gui.Tr.SureDropStashEntry, |