summaryrefslogtreecommitdiffstats
path: root/pkg/gui/branches_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-19 19:31:58 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit2fac2f9f1f5f662c7a382e1b625d6128caa80093 (patch)
treecf7c71db43a503d095ce90026201db65c57fdbb7 /pkg/gui/branches_panel.go
parente4beaf4de96afee804d019e7c19eee833d3b1801 (diff)
WIP
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r--pkg/gui/branches_panel.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go
index 80e7e154a..f8155db2d 100644
--- a/pkg/gui/branches_panel.go
+++ b/pkg/gui/branches_panel.go
@@ -7,7 +7,6 @@ import (
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/commands"
"github.com/jesseduffield/lazygit/pkg/gui/presentation"
- "github.com/jesseduffield/lazygit/pkg/utils"
)
// list panel functions
@@ -439,26 +438,6 @@ func (gui *Gui) handleFastForward(g *gocui.Gui, v *gocui.View) error {
return nil
}
-func (gui *Gui) onViewTabClick(viewName string, tabIndex int) error {
- context := gui.ViewTabContextMap[viewName][tabIndex].contexts[0]
-
- return gui.switchContext(context)
-}
-
-func (gui *Gui) handleNextTab(g *gocui.Gui, v *gocui.View) error {
- return gui.onViewTabClick(
- v.Name(),
- utils.ModuloWithWrap(v.TabIndex+1, len(v.Tabs)),
- )
-}
-
-func (gui *Gui) handlePrevTab(g *gocui.Gui, v *gocui.View) error {
- return gui.onViewTabClick(
- v.Name(),
- utils.ModuloWithWrap(v.TabIndex-1, len(v.Tabs)),
- )
-}
-
func (gui *Gui) handleCreateResetToBranchMenu(g *gocui.Gui, v *gocui.View) error {
branch := gui.getSelectedBranch()
if branch == nil {