diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-28 22:09:10 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-29 00:17:32 +1100 |
commit | 1b09674ce845667f84d566593285ef6d3c78503b (patch) | |
tree | fa411bd916ac83cc0cdf2ab75af510e86b4cb48f /pkg/gui/submodules_panel.go | |
parent | d13a6481326a56ec1e23c72170b4cef68d50a83d (diff) |
simplify submodule remove
Diffstat (limited to 'pkg/gui/submodules_panel.go')
-rw-r--r-- | pkg/gui/submodules_panel.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/pkg/gui/submodules_panel.go b/pkg/gui/submodules_panel.go index 96648b6ce..be0574356 100644 --- a/pkg/gui/submodules_panel.go +++ b/pkg/gui/submodules_panel.go @@ -193,25 +193,6 @@ func (gui *Gui) forSubmodule(callback func(*models.SubmoduleConfig) error) func( } } -func (gui *Gui) handleResetRemoveSubmodule(submodule *models.SubmoduleConfig) error { - menuItems := []*menuItem{ - { - displayString: gui.Tr.LcSubmoduleStashAndReset, - onPress: func() error { - return gui.resetSubmodule(submodule) - }, - }, - { - displayString: gui.Tr.LcRemoveSubmodule, - onPress: func() error { - return gui.removeSubmodule(submodule) - }, - }, - } - - return gui.createMenu(submodule.Name, menuItems, createMenuOptions{showCancel: true}) -} - func (gui *Gui) handleBulkSubmoduleActionsMenu() error { menuItems := []*menuItem{ { |