diff options
author | Timur Makarchuk <Timur.makarchuk@gmail.com> | 2017-11-22 09:25:47 +0300 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-11-22 08:25:47 +0200 |
commit | dbb7715b0b08ea5ea1b8e03c624887abb140a74f (patch) | |
tree | 9216343d1783f70a8ddec8bb659cc832a30a2bc2 | |
parent | ea78a6db5710c630fc3bd2d1d6c9551ea82b39f9 (diff) | |
download | gitea-dbb7715b0b08ea5ea1b8e03c624887abb140a74f.tar.gz gitea-dbb7715b0b08ea5ea1b8e03c624887abb140a74f.zip |
Remove render issue link (#2954)
* Remove function that does nothing
* Remove unused import
-rw-r--r-- | routers/repo/commit.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index afd6b113c4..758771e657 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -5,7 +5,6 @@ package repo import ( - "container/list" "path" "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 func Commits(ctx *context.Context) { ctx.Data["PageIsCommits"] = true @@ -73,7 +63,6 @@ func Commits(ctx *context.Context) { ctx.Handle(500, "CommitsByRange", err) return } - commits = renderIssueLinks(commits, ctx.Repo.RepoLink) commits = models.ValidateCommitsWithEmails(commits) commits = models.ParseCommitsWithSignature(commits) commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository) @@ -130,7 +119,6 @@ func SearchCommits(ctx *context.Context) { ctx.Handle(500, "SearchCommits", err) return } - commits = renderIssueLinks(commits, ctx.Repo.RepoLink) commits = models.ValidateCommitsWithEmails(commits) commits = models.ParseCommitsWithSignature(commits) commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository) @@ -178,7 +166,6 @@ func FileHistory(ctx *context.Context) { ctx.Handle(500, "CommitsByFileAndRange", err) return } - commits = renderIssueLinks(commits, ctx.Repo.RepoLink) commits = models.ValidateCommitsWithEmails(commits) commits = models.ParseCommitsWithSignature(commits) commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository) |