1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:00:06 -07:00

cmd/internal/obj: remove Link.Version

It is zeroed pointlessly and never read.

Change-Id: I65390501a878f545122ec558cb621b91e394a538
Reviewed-on: https://go-review.googlesource.com/40406
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Josh Bleecher Snyder 2017-04-12 06:07:28 -07:00
parent 9191c0b3fd
commit f30de83d79
2 changed files with 0 additions and 2 deletions

View File

@ -728,7 +728,6 @@ type Link struct {
Plan9privates *LSym
DiagFunc func(string, ...interface{})
DebugInfo func(fn *LSym, curfn interface{}) []*dwarf.Var // if non-nil, curfn is a *gc.Node
Version int
Errors int
Framepointer_enabled bool

View File

@ -55,7 +55,6 @@ func Linknew(arch *LinkArch) *Link {
ctxt := new(Link)
ctxt.Hash = make(map[SymVer]*LSym)
ctxt.Arch = arch
ctxt.Version = 0
ctxt.Pathname = WorkingDir()
ctxt.Headtype.Set(GOOS)