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/gui/commit_files_panel.go | |
parent | 675510ba53e3541a3b49f95f8ac1f8eb7b32a7d4 (diff) |
remove dead code
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r-- | pkg/gui/commit_files_panel.go | 17 |
1 files changed, 0 insertions, 17 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() |