aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-02-06 10:29:46 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-02-10 11:56:20 +0000
commit43f51a00700e5960fc890e6c3d596846757bf29d (patch)
treedee3d11120b60aa848b1f1d73d5066c8d5dd9c7c /pkg/vcs
parent529cb927961356394978d77470022859e718c44a (diff)
all: delete dead code
go install golang.org/x/tools/cmd/deadcode@latest deadcode -test ./...
Diffstat (limited to 'pkg/vcs')
-rw-r--r--pkg/vcs/git_test_util.go19
-rw-r--r--pkg/vcs/vcs.go4
2 files changed, 0 insertions, 23 deletions
diff --git a/pkg/vcs/git_test_util.go b/pkg/vcs/git_test_util.go
index 0595dc533..9d5ef1edc 100644
--- a/pkg/vcs/git_test_util.go
+++ b/pkg/vcs/git_test_util.go
@@ -110,22 +110,3 @@ func CreateTestRepo(t *testing.T, baseDir, name string) *TestRepo {
repo.CommitFileChange("master", "1")
return repo
}
-
-func CloneTestRepo(t *testing.T, baseDir, name string, originRepo *TestRepo) *TestRepo {
- dir := filepath.Join(baseDir, name)
- if err := osutil.MkdirAll(dir); err != nil {
- t.Fatal(err)
- }
- ignoreCC := map[string]bool{
- "stable@vger.kernel.org": true,
- }
- repo := &TestRepo{
- t: t,
- Dir: dir,
- name: filepath.Base(dir),
- Commits: make(map[string]map[string]*Commit),
- repo: newGitRepo(dir, ignoreCC, []RepoOpt{OptPrecious, OptDontSandbox}),
- }
- repo.Git("clone", originRepo.Dir, repo.Dir)
- return repo
-}
diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go
index b0a2dc8eb..c9a440ed1 100644
--- a/pkg/vcs/vcs.go
+++ b/pkg/vcs/vcs.go
@@ -362,10 +362,6 @@ func CommitLink(url, hash string) string {
return link(url, hash, "", 0, 0)
}
-func TreeLink(url, hash string) string {
- return link(url, hash, "", 0, 1)
-}
-
func LogLink(url, hash string) string {
return link(url, hash, "", 0, 2)
}