mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go: remove global loader state variable
Prior commits have removed all dependencies on the global module loader state variable, so it is now unnecessary and thus removed. This commit is part of the overall effort to eliminate global modloader state. Change-Id: Idaf033ee703a18ffd29e40fad80ef13c7b33dbec Reviewed-on: https://go-review.googlesource.com/c/go/+/711139 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Matloob <matloob@google.com> Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
parent
139f89226f
commit
2835b994fb
1 changed files with 0 additions and 2 deletions
|
|
@ -453,8 +453,6 @@ type State struct {
|
|||
|
||||
func NewState() *State { return &State{} }
|
||||
|
||||
var LoaderState = NewState()
|
||||
|
||||
// Init determines whether module mode is enabled, locates the root of the
|
||||
// current module (if any), sets environment variables for Git subprocesses, and
|
||||
// configures the cfg, codehost, load, modfetch, and search packages for use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue