diff options
Diffstat (limited to 'src/cmd/compile/internal/types2/object.go')
-rw-r--r-- | src/cmd/compile/internal/types2/object.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/types2/object.go b/src/cmd/compile/internal/types2/object.go index df080f071c..f373561809 100644 --- a/src/cmd/compile/internal/types2/object.go +++ b/src/cmd/compile/internal/types2/object.go @@ -189,7 +189,7 @@ func (obj *object) sameId(pkg *Package, name string) bool { // // Objects are ordered nil before non-nil, exported before // non-exported, then by name, and finally (for non-exported -// functions) by package height and path. +// functions) by package path. func (a *object) less(b *object) bool { if a == b { return false @@ -215,9 +215,6 @@ func (a *object) less(b *object) bool { return a.name < b.name } if !ea { - if a.pkg.height != b.pkg.height { - return a.pkg.height < b.pkg.height - } return a.pkg.path < b.pkg.path } |