summaryrefslogtreecommitdiffstats
path: root/pkg/gui/global_handlers.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-05 14:42:56 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commit482bdc4f1ea5448c5e98697ae66221e544ea40dd (patch)
tree7df478f9870e3dddc85f77d7b77439bed16e3c7b /pkg/gui/global_handlers.go
parent8e3484d8e98faf12f8395eaf5f9e8381f77a8e52 (diff)
more refactoring
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r--pkg/gui/global_handlers.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go
index 04f7efb61..ba8a0a237 100644
--- a/pkg/gui/global_handlers.go
+++ b/pkg/gui/global_handlers.go
@@ -182,11 +182,6 @@ func (gui *Gui) handleRefresh() error {
func (gui *Gui) handleMouseDownMain() error {
switch gui.currentSideContext() {
- case gui.State.Contexts.Files:
- // set filename, set primary/secondary selected, set line number, then switch context
- // I'll need to know it was changed though.
- // Could I pass something along to the context change?
- return gui.Controllers.Files.EnterFile(types.OnFocusOpts{ClickedViewName: "main", ClickedViewLineIdx: gui.Views.Main.SelectedLineIdx()})
case gui.State.Contexts.CommitFiles:
return gui.enterCommitFile(types.OnFocusOpts{ClickedViewName: "main", ClickedViewLineIdx: gui.Views.Main.SelectedLineIdx()})
}
@@ -194,15 +189,6 @@ func (gui *Gui) handleMouseDownMain() error {
return nil
}
-func (gui *Gui) handleMouseDownSecondary() error {
- switch gui.g.CurrentView() {
- case gui.Views.Files:
- return gui.Controllers.Files.EnterFile(types.OnFocusOpts{ClickedViewName: "secondary", ClickedViewLineIdx: gui.Views.Secondary.SelectedLineIdx()})
- }
-
- return nil
-}
-
func (gui *Gui) fetch() (err error) {
gui.c.LogAction("Fetch")
err = gui.git.Sync.Fetch(git_commands.FetchOptions{})