summaryrefslogtreecommitdiffstats
path: root/pkg/gui/branches_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-19 19:13:47 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit7ebed76d16026348abf586ff19e534f7297d7fce (patch)
treecd6ddb2e6b5ec134db209b30c7e443028f9b9ade /pkg/gui/branches_panel.go
parent2b812b01e9d80409a0bf212eb7208dcdd6f5c974 (diff)
WIP
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r--pkg/gui/branches_panel.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go
index b82301aaa..59a1e9f8f 100644
--- a/pkg/gui/branches_panel.go
+++ b/pkg/gui/branches_panel.go
@@ -89,11 +89,6 @@ func (gui *Gui) renderLocalBranchesWithSelection() error {
gui.refreshSelectedLine(&gui.State.Panels.Branches.SelectedLine, len(gui.State.Branches))
displayStrings := presentation.GetBranchListDisplayStrings(gui.State.Branches, gui.State.ScreenMode != SCREEN_NORMAL, gui.State.Diff.Ref)
gui.renderDisplayStrings(branchesView, displayStrings)
- // if gui.g.CurrentView() == branchesView {
- // if err := gui.handleBranchSelect(); err != nil {
- // return gui.surfaceError(err)
- // }
- // }
return nil
}
@@ -453,23 +448,6 @@ func (gui *Gui) onBranchesTabClick(tabIndex int) error {
return gui.switchContext(context)
}
-func (gui *Gui) refreshBranchesViewWithSelection() error {
- branchesView := gui.getBranchesView()
-
- switch branchesView.Context {
- case "local-branches":
- return gui.renderLocalBranchesWithSelection()
- case "remotes":
- return gui.renderRemotesWithSelection()
- case "remote-branches":
- return gui.renderRemoteBranchesWithSelection()
- case "tags":
- return gui.renderTagsWithSelection()
- }
-
- return nil
-}
-
func (gui *Gui) handleNextBranchesTab(g *gocui.Gui, v *gocui.View) error {
return gui.onBranchesTabClick(
utils.ModuloWithWrap(v.TabIndex+1, len(v.Tabs)),