Skip to content

Commit dbb7715

Browse files
makarchuklafriks
authored andcommitted
Remove render issue link (#2954)
* Remove function that does nothing * Remove unused import
1 parent ea78a6d commit dbb7715

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

routers/repo/commit.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package repo
66

77
import (
8-
"container/list"
98
"path"
109
"strings"
1110

@@ -37,15 +36,6 @@ func RefCommits(ctx *context.Context) {
3736
}
3837
}
3938

40-
func renderIssueLinks(oldCommits *list.List, repoLink string) *list.List {
41-
newCommits := list.New()
42-
for e := oldCommits.Front(); e != nil; e = e.Next() {
43-
c := e.Value.(*git.Commit)
44-
newCommits.PushBack(c)
45-
}
46-
return newCommits
47-
}
48-
4939
// Commits render branch's commits
5040
func Commits(ctx *context.Context) {
5141
ctx.Data["PageIsCommits"] = true
@@ -73,7 +63,6 @@ func Commits(ctx *context.Context) {
7363
ctx.Handle(500, "CommitsByRange", err)
7464
return
7565
}
76-
commits = renderIssueLinks(commits, ctx.Repo.RepoLink)
7766
commits = models.ValidateCommitsWithEmails(commits)
7867
commits = models.ParseCommitsWithSignature(commits)
7968
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
@@ -130,7 +119,6 @@ func SearchCommits(ctx *context.Context) {
130119
ctx.Handle(500, "SearchCommits", err)
131120
return
132121
}
133-
commits = renderIssueLinks(commits, ctx.Repo.RepoLink)
134122
commits = models.ValidateCommitsWithEmails(commits)
135123
commits = models.ParseCommitsWithSignature(commits)
136124
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
@@ -178,7 +166,6 @@ func FileHistory(ctx *context.Context) {
178166
ctx.Handle(500, "CommitsByFileAndRange", err)
179167
return
180168
}
181-
commits = renderIssueLinks(commits, ctx.Repo.RepoLink)
182169
commits = models.ValidateCommitsWithEmails(commits)
183170
commits = models.ParseCommitsWithSignature(commits)
184171
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)

0 commit comments

Comments
 (0)