From 616fe58df0c329d361a454bc4a119e15b97cf57f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 12 Jan 2025 20:58:17 -0800 Subject: [PATCH] Remove unused code --- services/context/repo.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/services/context/repo.go b/services/context/repo.go index 64a6aa42cd..05f6bb40f9 100644 --- a/services/context/repo.go +++ b/services/context/repo.go @@ -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