mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Remove dead code: RepoRef (#34131)
The RepoRef is a no-op since Refactor ref type (#33242) (Jan 14)
This commit is contained in:
@@ -669,12 +669,6 @@ func RepoAssignment(ctx *Context) {
|
||||
|
||||
const headRefName = "HEAD"
|
||||
|
||||
func RepoRef() func(*Context) {
|
||||
// old code does: return RepoRefByType(git.RefTypeBranch)
|
||||
// in most cases, it is an abuse, so we just disable it completely and fix the abuses one by one (if there is anything wrong)
|
||||
return nil
|
||||
}
|
||||
|
||||
func getRefNameFromPath(repo *Repository, path string, isExist func(string) bool) string {
|
||||
refName := ""
|
||||
parts := strings.Split(path, "/")
|
||||
|
Reference in New Issue
Block a user