mirror of
https://github.com/golang/go
synced 2024-11-22 19:34:59 -07:00
cmd/compile/internal/types: remove dead function
Remove the function CleanroomDo, which is no longer being used anywhere. Change-Id: Ie148005793b004bf63ca996101d08c30b87f8575 Reviewed-on: https://go-review.googlesource.com/c/go/+/540776 Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
45320c23f2
commit
3290fb870c
@ -129,12 +129,3 @@ func InternString(b []byte) string {
|
||||
internedStringsmu.Unlock()
|
||||
return s
|
||||
}
|
||||
|
||||
// CleanroomDo invokes f in an environment with no preexisting packages.
|
||||
// For testing of import/export only.
|
||||
func CleanroomDo(f func()) {
|
||||
saved := pkgMap
|
||||
pkgMap = make(map[string]*Pkg)
|
||||
f()
|
||||
pkgMap = saved
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user