mirror of
https://github.com/golang/go
synced 2024-11-16 22:04:50 -07:00
cmd/compile/internal/importer: turn off debugging output
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>
This commit is contained in:
parent
a11cd6f69a
commit
d3726f3469
@ -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)
|
||||
if false { // for debugging
|
||||
fmt.Fprintln(os.Stderr, "looking up ", pkgpath)
|
||||
}
|
||||
export, ok := m[pkgpath]
|
||||
return export, ok
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user