remove dead code

This commit is contained in:
Jesse Duffield 2022-02-26 16:29:15 +11:00
parent 675510ba53
commit d59c0e2725
2 changed files with 0 additions and 27 deletions

View file

@ -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()