From 7ebed76d16026348abf586ff19e534f7297d7fce Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 19 Aug 2020 19:13:47 +1000 Subject: WIP --- pkg/gui/branches_panel.go | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'pkg/gui/branches_panel.go') 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)), -- cgit v1.2.3