0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-22 23:02:07 +02:00

Remove unused code

This commit is contained in:
Lunny Xiao 2025-01-12 20:58:17 -08:00
parent eff3568d31
commit 616fe58df0
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -698,21 +698,6 @@ const (
RepoRefBlob
)
func RefTypeName(refType RepoRefType) string {
switch refType {
case RepoRefBranch:
return "branch"
case RepoRefTag:
return "tag"
case RepoRefCommit:
return "commit"
case RepoRefBlob:
return "blob"
default:
return "unknown"
}
}
const headRefName = "HEAD"
// RepoRef handles repository reference names when the ref name is not