1
0
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:
Than McIntosh 2023-11-08 10:45:34 -05:00
parent 45320c23f2
commit 3290fb870c

View File

@ -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
}