소스 검색

remove unused code

Unknwon 9 년 전
부모
커밋
84a43b38cf
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      routers/repo/commit.go

+ 0 - 3
routers/repo/commit.go

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