|
5 | 5 | package repo
|
6 | 6 |
|
7 | 7 | import (
|
8 |
| - "container/list" |
9 | 8 | "path"
|
10 | 9 | "strings"
|
11 | 10 |
|
@@ -37,15 +36,6 @@ func RefCommits(ctx *context.Context) {
|
37 | 36 | }
|
38 | 37 | }
|
39 | 38 |
|
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 |
| - |
49 | 39 | // Commits render branch's commits
|
50 | 40 | func Commits(ctx *context.Context) {
|
51 | 41 | ctx.Data["PageIsCommits"] = true
|
@@ -73,7 +63,6 @@ func Commits(ctx *context.Context) {
|
73 | 63 | ctx.Handle(500, "CommitsByRange", err)
|
74 | 64 | return
|
75 | 65 | }
|
76 |
| - commits = renderIssueLinks(commits, ctx.Repo.RepoLink) |
77 | 66 | commits = models.ValidateCommitsWithEmails(commits)
|
78 | 67 | commits = models.ParseCommitsWithSignature(commits)
|
79 | 68 | commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
@@ -130,7 +119,6 @@ func SearchCommits(ctx *context.Context) {
|
130 | 119 | ctx.Handle(500, "SearchCommits", err)
|
131 | 120 | return
|
132 | 121 | }
|
133 |
| - commits = renderIssueLinks(commits, ctx.Repo.RepoLink) |
134 | 122 | commits = models.ValidateCommitsWithEmails(commits)
|
135 | 123 | commits = models.ParseCommitsWithSignature(commits)
|
136 | 124 | commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
@@ -178,7 +166,6 @@ func FileHistory(ctx *context.Context) {
|
178 | 166 | ctx.Handle(500, "CommitsByFileAndRange", err)
|
179 | 167 | return
|
180 | 168 | }
|
181 |
| - commits = renderIssueLinks(commits, ctx.Repo.RepoLink) |
182 | 169 | commits = models.ValidateCommitsWithEmails(commits)
|
183 | 170 | commits = models.ParseCommitsWithSignature(commits)
|
184 | 171 | commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
|
0 commit comments