aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modfetch/insecure.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/internal/modfetch/insecure.go')
-rw-r--r--src/cmd/go/internal/modfetch/insecure.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/cmd/go/internal/modfetch/insecure.go b/src/cmd/go/internal/modfetch/insecure.go
deleted file mode 100644
index 012d05f29d..0000000000
--- a/src/cmd/go/internal/modfetch/insecure.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2018 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package modfetch
-
-import (
- "cmd/go/internal/cfg"
-
- "golang.org/x/mod/module"
-)
-
-// allowInsecure reports whether we are allowed to fetch this path in an insecure manner.
-func allowInsecure(path string) bool {
- return cfg.Insecure || module.MatchPrefixPatterns(cfg.GOINSECURE, path)
-}