summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_options_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-02-16 09:32:51 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-02-16 09:57:49 +1100
commit0a69c1a02d2981a45f79fa65f785ef962be566aa (patch)
treefdf861368597ff9908fea0864070a9d51476142b /pkg/gui/patch_options_panel.go
parentfeaf98bd018502ca95c0d93be0d8b2bfa7f46f03 (diff)
add reset to reflog commit menu
Diffstat (limited to 'pkg/gui/patch_options_panel.go')
-rw-r--r--pkg/gui/patch_options_panel.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go
index 5429ec2e8..849157598 100644
--- a/pkg/gui/patch_options_panel.go
+++ b/pkg/gui/patch_options_panel.go
@@ -6,16 +6,6 @@ import (
"github.com/jesseduffield/gocui"
)
-type patchMenuOption struct {
- displayName string
- function func() error
-}
-
-// GetDisplayStrings is a function.
-func (o *patchMenuOption) GetDisplayStrings(isFocused bool) []string {
- return []string{o.displayName}
-}
-
func (gui *Gui) handleCreatePatchOptionsMenu(g *gocui.Gui, v *gocui.View) error {
if !gui.GitCommand.PatchManager.CommitSelected() {
return gui.createErrorPanel(gui.g, gui.Tr.SLocalize("NoPatchError"))