]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/compile/internal/types: remove dead function
authorThan McIntosh <thanm@google.com>
Wed, 8 Nov 2023 15:45:34 +0000 (10:45 -0500)
committerThan McIntosh <thanm@google.com>
Wed, 8 Nov 2023 16:28:50 +0000 (16:28 +0000)
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>

src/cmd/compile/internal/types/pkg.go

index 8223d801359650a0082996ad306cacdafed18350..c6ce7889afbb7bd7abc4d32a30e53278bda7b44f 100644 (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
-}