From: Bryan C. Mills Date: Fri, 27 Mar 2020 15:26:37 +0000 (-0400) Subject: cmd/go/internal/modfetch/codehost: remove unused GitRepo function X-Git-Tag: go1.15beta1~738 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3840aced142aeeca6ddf54cb90c07b54e4cf814b;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Michael Matloob --- 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) {