diff options
Diffstat (limited to 'src/cmd/compile/internal/types2/resolver.go')
-rw-r--r-- | src/cmd/compile/internal/types2/resolver.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/cmd/compile/internal/types2/resolver.go b/src/cmd/compile/internal/types2/resolver.go index 5d498b6b2b..77881f493f 100644 --- a/src/cmd/compile/internal/types2/resolver.go +++ b/src/cmd/compile/internal/types2/resolver.go @@ -197,7 +197,6 @@ func (check *Checker) importPackage(pos syntax.Pos, path, dir string) *Package { // methods with receiver base type names. func (check *Checker) collectObjects() { pkg := check.pkg - pkg.height = 0 // pkgImports is the set of packages already imported by any package file seen // so far. Used to avoid duplicate entries in pkg.imports. Allocate and populate @@ -255,15 +254,6 @@ func (check *Checker) collectObjects() { continue } - if imp == Unsafe { - // typecheck ignores imports of package unsafe for - // calculating height. - // TODO(mdempsky): Revisit this. This seems fine, but I - // don't remember explicitly considering this case. - } else if h := imp.height + 1; h > pkg.height { - pkg.height = h - } - // local name overrides imported package name name := imp.name if s.LocalPkgName != nil { |