Commit fd83d7b8 authored by Dave Cheney's avatar Dave Cheney

cmd/compile/internal/gc: remove unused pkgByPath type

pkgByPath was added in d78c84c4 to eliminate the differences between the
export formats around the time of Go 1.7.

The last remnants of the textual export format was removed by Josh in
39850 making the pkgByPath sorting type unused.

Change-Id: I168816d6401f45119475a4fe5ada00d9ce571a9e
Reviewed-on: https://go-review.googlesource.com/40050Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
Reviewed-by: default avatarJosh Bleecher Snyder <josharian@gmail.com>
parent 6d9c77f5
...@@ -1558,12 +1558,6 @@ func (a typesByString) Len() int { return len(a) } ...@@ -1558,12 +1558,6 @@ func (a typesByString) Len() int { return len(a) }
func (a typesByString) Less(i, j int) bool { return a[i].s < a[j].s } func (a typesByString) Less(i, j int) bool { return a[i].s < a[j].s }
func (a typesByString) Swap(i, j int) { a[i], a[j] = a[j], a[i] } func (a typesByString) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
type pkgByPath []*types.Pkg
func (a pkgByPath) Len() int { return len(a) }
func (a pkgByPath) Less(i, j int) bool { return a[i].Path < a[j].Path }
func (a pkgByPath) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func dalgsym(t *types.Type) *types.Sym { func dalgsym(t *types.Type) *types.Sym {
var s *types.Sym var s *types.Sym
var hashfunc *types.Sym var hashfunc *types.Sym
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment