diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 08:05:44 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 88ae550b93020de7e4b232b3ed9a26606c7caa83 (patch) | |
tree | 9479895e1c578c33a1b162b172b6a1022d569093 /pkg/gui/patch_building_panel.go | |
parent | 2c3f5be093c76a7bd71661e88e2823dd27fb431f (diff) |
unused method
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r-- | pkg/gui/patch_building_panel.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go index 38a03859a..984ac80ce 100644 --- a/pkg/gui/patch_building_panel.go +++ b/pkg/gui/patch_building_panel.go @@ -107,26 +107,6 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error { return nil } -func (gui *Gui) refreshSecondaryPatchPanel() error { - // TODO: swap out for secondaryPatchPanelUpdateOpts - - if gui.GitCommand.PatchManager.Active() { - gui.splitMainPanel(true) - secondaryView := gui.getSecondaryView() - secondaryView.Highlight = true - secondaryView.Wrap = false - - gui.g.Update(func(*gocui.Gui) error { - gui.setViewContent(gui.getSecondaryView(), gui.GitCommand.PatchManager.RenderAggregatedPatchColored(false)) - return nil - }) - } else { - gui.splitMainPanel(false) - } - - return nil -} - func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts { if gui.GitCommand.PatchManager.Active() { patch := gui.GitCommand.PatchManager.RenderAggregatedPatchColored(false) |