@@ -768,7 +768,6 @@ func checkCitationFile(ctx *context.Context, entry *git.TreeEntry) {
768
768
}
769
769
}
770
770
771
-
772
771
// Home render repository home page
773
772
func Home (ctx * context.Context ) {
774
773
if setting .Other .EnableFeed {
@@ -1007,8 +1006,6 @@ func renderHomeCode(ctx *context.Context) {
1007
1006
return
1008
1007
}
1009
1008
1010
- checkOutdatedBranch (ctx )
1011
-
1012
1009
checkCitationFile (ctx , entry )
1013
1010
if ctx .Written () {
1014
1011
return
@@ -1075,31 +1072,6 @@ func renderHomeCode(ctx *context.Context) {
1075
1072
ctx .HTML (http .StatusOK , tplRepoHome )
1076
1073
}
1077
1074
1078
- func checkOutdatedBranch (ctx * context.Context ) {
1079
- // get the head commit of the branch since ctx.Repo.CommitID is not always the head commit of `ctx.Repo.BranchName`
1080
- commit , err := ctx .Repo .GitRepo .GetBranchCommit (ctx .Repo .BranchName )
1081
- if err != nil {
1082
- log .Error ("GetBranchCommitID: %v" , err )
1083
- // Don't return an error page, as it can be rechecked the next time the user opens the page.
1084
- return
1085
- }
1086
-
1087
-
1088
- dbBranch , err := git_model .GetBranch (ctx , ctx .Repo .Repository .ID , ctx .Repo .BranchName )
1089
- if err != nil {
1090
- log .Error ("GetBranch: %v" , err )
1091
- // Don't return an error page, as it can be rechecked the next time the user opens the page.
1092
- return
1093
- }
1094
-
1095
- if commit .ID .String () != dbBranch .CommitID &&
1096
- time .Since (commit .)
1097
- {
1098
-
1099
- }
1100
- }
1101
-
1102
-
1103
1075
// RenderUserCards render a page show users according the input template
1104
1076
func RenderUserCards (ctx * context.Context , total int , getter func (opts db.ListOptions ) ([]* user_model.User , error ), tpl base.TplName ) {
1105
1077
page := ctx .FormInt ("page" )
@@ -1175,5 +1147,3 @@ func Forks(ctx *context.Context) {
1175
1147
1176
1148
ctx .HTML (http .StatusOK , tplForks )
1177
1149
}
1178
-
1179
-
0 commit comments