From d410f548b89bc9ca41fb5ead275db3d9d18fa5dc Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Sun, 12 May 2019 22:55:41 -0400 Subject: [PATCH] Cleanup git widget Next/Prev already implemented properly in multisourcewidget --- modules/git/widget.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/modules/git/widget.go b/modules/git/widget.go index 68f66fa4d..52d067b45 100644 --- a/modules/git/widget.go +++ b/modules/git/widget.go @@ -216,25 +216,3 @@ func (widget *Widget) findGitRepositories(repositories []*GitRepo, directory str return repositories } - -func (widget *Widget) Next() { - widget.Idx = widget.Idx + 1 - if widget.Idx == len(widget.GitRepos) { - widget.Idx = 0 - } - - if widget.DisplayFunction != nil { - widget.DisplayFunction() - } -} - -func (widget *Widget) Prev() { - widget.Idx = widget.Idx - 1 - if widget.Idx < 0 { - widget.Idx = len(widget.GitRepos) - 1 - } - - if widget.DisplayFunction != nil { - widget.DisplayFunction() - } -}