Skip to content

Commit

Permalink
Cleanup git widget
Browse files Browse the repository at this point in the history
Next/Prev already implemented properly in multisourcewidget
  • Loading branch information
Seanstoppable committed May 13, 2019
1 parent cbb147f commit d410f54
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions modules/git/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

0 comments on commit d410f54

Please sign in to comment.