From 0b7bda291ccbdd0a134832747d5d4ebfa41ecb4c Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 1 Apr 2021 08:28:46 +1100 Subject: [PATCH] remove dead code --- pkg/gui/commit_files_panel.go | 1 - pkg/gui/window.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go index 25e999c87..1df42e41e 100644 --- a/pkg/gui/commit_files_panel.go +++ b/pkg/gui/commit_files_panel.go @@ -63,7 +63,6 @@ func (gui *Gui) handleCheckoutCommitFile(g *gocui.Gui, v *gocui.View) error { return nil } - // TODO: verify this works for directories if err := gui.GitCommand.CheckoutFile(gui.State.CommitFileManager.GetParent(), node.GetPath()); err != nil { return gui.surfaceError(err) } diff --git a/pkg/gui/window.go b/pkg/gui/window.go index 4af20f795..c3fffc637 100644 --- a/pkg/gui/window.go +++ b/pkg/gui/window.go @@ -40,9 +40,3 @@ func (gui *Gui) resetWindowForView(viewName string) { // we assume here that the window contains as its default view a view with the same name as the window gui.State.WindowViewNameMap[window] = window } - -func (gui *Gui) renderWindow(window string) error { - viewName := gui.getViewNameForWindow(window) - gui.Log.Warn(viewName) - return gui.rerenderView(viewName) -}