diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-19 18:06:51 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | a32947e7a777cb1f1bc16ea9693bd3d01519ea4b (patch) | |
tree | 2efeb58fefe076426501653aee238b83bbda1850 /pkg/gui/branches_panel.go | |
parent | 2fdadd383a2609921abd4aeb99e67bd5f1bbc0fc (diff) |
prepare for OnRender prop
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 4efbe6397..79b436c4e 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -454,18 +454,6 @@ func (gui *Gui) onBranchesTabClick(tabIndex int) error { return gui.switchContext(context) } -func (gui *Gui) tabIndexForContext(c Context, tabContexts tabContexts) int { - for i, tabContext := range tabContexts { - for _, context := range tabContext.contexts { - if context.GetKey() == c.GetKey() { - return i - } - } - } - gui.Log.Errorf("tab not found for context %s", c.GetKey()) - return 0 -} - func (gui *Gui) refreshBranchesViewWithSelection() error { branchesView := gui.getBranchesView() |