summaryrefslogtreecommitdiffstats
path: root/pkg/gui/undoing.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-02 19:20:40 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit798d3e2d54e828f25ed4aadcefff11593fa23e10 (patch)
tree3b68eedd78e13836da8d7b8c46c5862c458f02a0 /pkg/gui/undoing.go
parente8f99c3326f543b713cafb6420a5b9c3c9b4d50c (diff)
get rid of these positively ghastly method signatures
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r--pkg/gui/undoing.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go
index 6379937c7..f055ef11a 100644
--- a/pkg/gui/undoing.go
+++ b/pkg/gui/undoing.go
@@ -1,7 +1,6 @@
package gui
import (
- "github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/commands"
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/utils"
@@ -86,7 +85,7 @@ func (gui *Gui) parseReflogForActions(onUserAction func(counter int, action refl
return nil
}
-func (gui *Gui) reflogUndo(g *gocui.Gui, v *gocui.View) error {
+func (gui *Gui) reflogUndo() error {
undoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit undo]"}
undoingStatus := gui.Tr.UndoingStatus
@@ -117,7 +116,7 @@ func (gui *Gui) reflogUndo(g *gocui.Gui, v *gocui.View) error {
})
}
-func (gui *Gui) reflogRedo(g *gocui.Gui, v *gocui.View) error {
+func (gui *Gui) reflogRedo() error {
redoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit redo]"}
redoingStatus := gui.Tr.RedoingStatus