diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-26 16:29:15 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | d59c0e27251f73f6928f3f4cf459b206d24271e7 (patch) | |
tree | 2bf0a1a7dbb1ea62ab4bec0e7f3e96538ad05240 /pkg | |
parent | 675510ba53e3541a3b49f95f8ac1f8eb7b32a7d4 (diff) |
remove dead code
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/commit_files_panel.go | 17 | ||||
-rw-r--r-- | pkg/gui/context.go | 10 |
2 files changed, 0 insertions, 27 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go index be8ec1a53..0ada68090 100644 --- a/pkg/gui/commit_files_panel.go +++ b/pkg/gui/commit_files_panel.go @@ -1,27 +1,10 @@ package gui import ( - "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/gui/context" "github.com/jesseduffield/lazygit/pkg/gui/controllers" ) -func (gui *Gui) getSelectedCommitFile() *models.CommitFile { - node := gui.State.Contexts.CommitFiles.GetSelectedFileNode() - if node == nil { - return nil - } - return node.File -} - -func (gui *Gui) getSelectedCommitFilePath() string { - node := gui.State.Contexts.CommitFiles.GetSelectedFileNode() - if node == nil { - return "" - } - return node.GetPath() -} - // TODO: do we need this? func (gui *Gui) onCommitFileFocus() error { gui.escapeLineByLinePanel() diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 748354c3d..b4b274092 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -448,16 +448,6 @@ func (gui *Gui) setViewTabForContext(c types.Context) { } } -func (gui *Gui) contextForContextKey(contextKey types.ContextKey) (types.Context, bool) { - for _, context := range gui.State.Contexts.Flatten() { - if context.GetKey() == contextKey { - return context, true - } - } - - return nil, false -} - func (gui *Gui) rerenderView(view *gocui.View) error { return gui.State.ViewContextMap.Get(view.Name()).HandleRender() } |