Remove render issue link (#2954)
* Remove function that does nothing * Remove unused import
This commit is contained in:
parent
ea78a6db57
commit
dbb7715b0b
1 changed files with 0 additions and 13 deletions
|
@ -5,7 +5,6 @@
|
||||||
package repo
|
package repo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"container/list"
|
|
||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -37,15 +36,6 @@ func RefCommits(ctx *context.Context) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func renderIssueLinks(oldCommits *list.List, repoLink string) *list.List {
|
|
||||||
newCommits := list.New()
|
|
||||||
for e := oldCommits.Front(); e != nil; e = e.Next() {
|
|
||||||
c := e.Value.(*git.Commit)
|
|
||||||
newCommits.PushBack(c)
|
|
||||||
}
|
|
||||||
return newCommits
|
|
||||||
}
|
|
||||||
|
|
||||||
// Commits render branch's commits
|
// Commits render branch's commits
|
||||||
func Commits(ctx *context.Context) {
|
func Commits(ctx *context.Context) {
|
||||||
ctx.Data["PageIsCommits"] = true
|
ctx.Data["PageIsCommits"] = true
|
||||||
|
@ -73,7 +63,6 @@ func Commits(ctx *context.Context) {
|
||||||
ctx.Handle(500, "CommitsByRange", err)
|
ctx.Handle(500, "CommitsByRange", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
commits = renderIssueLinks(commits, ctx.Repo.RepoLink)
|
|
||||||
commits = models.ValidateCommitsWithEmails(commits)
|
commits = models.ValidateCommitsWithEmails(commits)
|
||||||
commits = models.ParseCommitsWithSignature(commits)
|
commits = models.ParseCommitsWithSignature(commits)
|
||||||
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
||||||
|
@ -130,7 +119,6 @@ func SearchCommits(ctx *context.Context) {
|
||||||
ctx.Handle(500, "SearchCommits", err)
|
ctx.Handle(500, "SearchCommits", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
commits = renderIssueLinks(commits, ctx.Repo.RepoLink)
|
|
||||||
commits = models.ValidateCommitsWithEmails(commits)
|
commits = models.ValidateCommitsWithEmails(commits)
|
||||||
commits = models.ParseCommitsWithSignature(commits)
|
commits = models.ParseCommitsWithSignature(commits)
|
||||||
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
||||||
|
@ -178,7 +166,6 @@ func FileHistory(ctx *context.Context) {
|
||||||
ctx.Handle(500, "CommitsByFileAndRange", err)
|
ctx.Handle(500, "CommitsByFileAndRange", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
commits = renderIssueLinks(commits, ctx.Repo.RepoLink)
|
|
||||||
commits = models.ValidateCommitsWithEmails(commits)
|
commits = models.ValidateCommitsWithEmails(commits)
|
||||||
commits = models.ParseCommitsWithSignature(commits)
|
commits = models.ParseCommitsWithSignature(commits)
|
||||||
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
||||||
|
|
Reference in a new issue