mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-25 23:06:11 +02:00
Remove unused code
This commit is contained in:
parent
eff3568d31
commit
616fe58df0
@ -698,21 +698,6 @@ const (
|
|||||||
RepoRefBlob
|
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"
|
const headRefName = "HEAD"
|
||||||
|
|
||||||
// RepoRef handles repository reference names when the ref name is not
|
// RepoRef handles repository reference names when the ref name is not
|
||||||
|
Loading…
x
Reference in New Issue
Block a user