summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_building_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-23 08:05:44 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit88ae550b93020de7e4b232b3ed9a26606c7caa83 (patch)
tree9479895e1c578c33a1b162b172b6a1022d569093 /pkg/gui/patch_building_panel.go
parent2c3f5be093c76a7bd71661e88e2823dd27fb431f (diff)
unused method
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r--pkg/gui/patch_building_panel.go20
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)