aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2020-03-27 11:26:37 -0400
committerBryan C. Mills <bcmills@google.com>2020-03-27 15:52:23 +0000
commit3840aced142aeeca6ddf54cb90c07b54e4cf814b (patch)
treec54c016ce4937ed0f8f5ef9adc4a7ae631f020d1
parentd22086ef5e921ee416e929d693f237971569869e (diff)
downloadgo-3840aced142aeeca6ddf54cb90c07b54e4cf814b.tar.gz
go-3840aced142aeeca6ddf54cb90c07b54e4cf814b.zip
cmd/go/internal/modfetch/codehost: remove unused GitRepo function
For #37943 Change-Id: Ib8ba5d846f41afc0047c33b8145918d93326cdd0 Reviewed-on: https://go-review.googlesource.com/c/go/+/225937 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org>
-rw-r--r--src/cmd/go/internal/modfetch/codehost/git.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/go/internal/modfetch/codehost/git.go b/src/cmd/go/internal/modfetch/codehost/git.go
index f08df512f0..31921324a7 100644
--- a/src/cmd/go/internal/modfetch/codehost/git.go
+++ b/src/cmd/go/internal/modfetch/codehost/git.go
@@ -27,11 +27,6 @@ import (
"golang.org/x/mod/semver"
)
-// GitRepo returns the code repository at the given Git remote reference.
-func GitRepo(remote string) (Repo, error) {
- return newGitRepoCached(remote, false)
-}
-
// LocalGitRepo is like Repo but accepts both Git remote references
// and paths to repositories on the local file system.
func LocalGitRepo(remote string) (Repo, error) {