diff options
author | Bryan C. Mills <bcmills@google.com> | 2020-03-27 11:26:37 -0400 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2020-03-27 15:52:23 +0000 |
commit | 3840aced142aeeca6ddf54cb90c07b54e4cf814b (patch) | |
tree | c54c016ce4937ed0f8f5ef9adc4a7ae631f020d1 | |
parent | d22086ef5e921ee416e929d693f237971569869e (diff) | |
download | go-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.go | 5 |
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) { |