]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/importer: turn off debugging output
authorRobert Griesemer <gri@golang.org>
Thu, 10 Nov 2022 00:41:05 +0000 (16:41 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 10 Nov 2022 14:32:22 +0000 (14:32 +0000)
Also, remove `debug` constant. Was not used.
Follow-up on CL 442303.

Fixes #56681.

Change-Id: Ia1499511ba553670617bcb9b7c699412e8df0669
Reviewed-on: https://go-review.googlesource.com/c/go/+/449238
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/compile/internal/importer/gcimporter.go

index e4d8a86f9a61598fd0edc41fdb47d6786e3a7d75..e479bd12d36fdfb5df12347b9e0dd0e1ebff6a47 100644 (file)
@@ -20,9 +20,6 @@ import (
        "cmd/compile/internal/types2"
 )
 
-// debugging/development support
-const debug = false
-
 func lookupGorootExport(pkgpath, srcRoot, srcDir string) (string, bool) {
        pkgpath = filepath.ToSlash(pkgpath)
        m, err := goroot.PkgfileMap()
@@ -37,7 +34,9 @@ func lookupGorootExport(pkgpath, srcRoot, srcDir string) (string, bool) {
                vendorPrefix = path.Join("cmd", vendorPrefix)
        }
        pkgpath = path.Join(vendorPrefix, pkgpath)
-       fmt.Fprintln(os.Stderr, "looking up ", pkgpath)
+       if false { // for debugging
+               fmt.Fprintln(os.Stderr, "looking up ", pkgpath)
+       }
        export, ok := m[pkgpath]
        return export, ok
 }