diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-03-23 22:05:25 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-04-30 13:19:53 +1000 |
commit | f8c9ce33c2cdbefac27e6af409a10aa539d4037a (patch) | |
tree | e9f8dbb848baf6ca5681864ce7d19a0dd490f3e0 /pkg/gui/context_config.go | |
parent | 71753770ad6da851b6584b6868fd03a0dba6e5c8 (diff) |
move more actions into controller
Diffstat (limited to 'pkg/gui/context_config.go')
-rw-r--r-- | pkg/gui/context_config.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/pkg/gui/context_config.go b/pkg/gui/context_config.go index 4dcddb3ea..a81e01bf5 100644 --- a/pkg/gui/context_config.go +++ b/pkg/gui/context_config.go @@ -45,29 +45,3 @@ func (gui *Gui) TransientContexts() []types.Context { return context.IsTransient() }) } - -func (gui *Gui) getListContexts() []types.IListContext { - return []types.IListContext{ - gui.State.Contexts.Menu, - gui.State.Contexts.Files, - gui.State.Contexts.Branches, - gui.State.Contexts.Remotes, - gui.State.Contexts.RemoteBranches, - gui.State.Contexts.Tags, - gui.State.Contexts.LocalCommits, - gui.State.Contexts.ReflogCommits, - gui.State.Contexts.SubCommits, - gui.State.Contexts.Stash, - gui.State.Contexts.CommitFiles, - gui.State.Contexts.Submodules, - gui.State.Contexts.Suggestions, - } -} - -func (gui *Gui) getPatchExplorerContexts() []types.IPatchExplorerContext { - return []types.IPatchExplorerContext{ - gui.State.Contexts.Staging, - gui.State.Contexts.StagingSecondary, - gui.State.Contexts.CustomPatchBuilder, - } -} |