Browse Source

remove unused code

for-closed-social
Unknwon 9 years ago
parent
commit
84a43b38cf
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      routers/repo/commit.go

+ 0
- 3
routers/repo/commit.go View File

@ -17,8 +17,6 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
import "github.com/davecheney/profile"
const ( const (
COMMITS base.TplName = "repo/commits" COMMITS base.TplName = "repo/commits"
DIFF base.TplName = "repo/diff" DIFF base.TplName = "repo/diff"
@ -45,7 +43,6 @@ func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List {
} }
func Commits(ctx *middleware.Context) { func Commits(ctx *middleware.Context) {
defer profile.Start(profile.CPUProfile).Stop()
ctx.Data["PageIsCommits"] = true ctx.Data["PageIsCommits"] = true
commitsCount, err := ctx.Repo.Commit.CommitsCount() commitsCount, err := ctx.Repo.Commit.CommitsCount()

Loading…
Cancel
Save