diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-13 11:40:49 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | 33a223e9813daf426d033c07fce5a5fab4276653 (patch) | |
tree | fa100bd245b66c436befbeddc25cac876256287c /pkg | |
parent | 943a8e83da2f5ab9afc7dc22f32bfb4609ff6347 (diff) |
remove dead code
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/sub_commits_panel.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/pkg/gui/sub_commits_panel.go b/pkg/gui/sub_commits_panel.go index 5b5637edc..0d39038d4 100644 --- a/pkg/gui/sub_commits_panel.go +++ b/pkg/gui/sub_commits_panel.go @@ -1,7 +1,6 @@ package gui import ( - "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/gui/controllers" "github.com/jesseduffield/lazygit/pkg/gui/types" ) @@ -69,27 +68,6 @@ func (gui *Gui) handleViewSubCommitFiles() error { }) } -func (gui *Gui) switchToSubCommitsContext(refName string) error { - // need to populate my sub commits - commits, err := gui.git.Loaders.Commits.GetCommits( - loaders.GetCommitsOptions{ - Limit: true, - FilterPath: gui.State.Modes.Filtering.GetPath(), - IncludeRebaseCommits: false, - RefName: refName, - }, - ) - if err != nil { - return err - } - - gui.State.Model.SubCommits = commits - gui.State.Contexts.SubCommits.SetSelectedLineIdx(0) - gui.State.Contexts.SubCommits.SetParentContext(gui.currentSideListContext()) - - return gui.c.PushContext(gui.State.Contexts.SubCommits) -} - func (gui *Gui) handleNewBranchOffSubCommit() error { commit := gui.State.Contexts.SubCommits.GetSelected() if commit == nil { |