mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	remove unused code
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user