diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-19 21:51:50 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 419cb9feb84d98633e5a5b15776b4956c5068a58 (patch) | |
tree | 4429228ed5a27587fdcc879c301065f679249002 /pkg/gui/commit_files_panel.go | |
parent | dbf6bb5f2792afc4adebc9087529de5ac433131c (diff) |
more standardisation
Diffstat (limited to 'pkg/gui/commit_files_panel.go')
-rw-r--r-- | pkg/gui/commit_files_panel.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg/gui/commit_files_panel.go b/pkg/gui/commit_files_panel.go index f5b69af6b..b781131cb 100644 --- a/pkg/gui/commit_files_panel.go +++ b/pkg/gui/commit_files_panel.go @@ -4,7 +4,6 @@ import ( "github.com/go-errors/errors" "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/commands" - "github.com/jesseduffield/lazygit/pkg/gui/presentation" ) func (gui *Gui) getSelectedCommitFile() *commands.CommitFile { @@ -105,16 +104,6 @@ func (gui *Gui) refreshCommitFilesView() error { return gui.postRefreshUpdate(gui.Contexts.BranchCommits.Files.Context) } -func (gui *Gui) renderCommitFiles() error { - gui.refreshSelectedLine(&gui.State.Panels.CommitFiles.SelectedLine, len(gui.State.CommitFiles)) - - commitsFileView := gui.getCommitFilesView() - displayStrings := presentation.GetCommitFileListDisplayStrings(gui.State.CommitFiles, gui.State.Diff.Ref) - gui.renderDisplayStrings(commitsFileView, displayStrings) - - return nil -} - func (gui *Gui) handleOpenOldCommitFile(g *gocui.Gui, v *gocui.View) error { file := gui.getSelectedCommitFile() if file == nil { |