mirror of
https://github.com/golang/go
synced 2024-11-20 00:44:45 -07:00
cmd/link: remove dead code
Change-Id: I8a54235c8b7bf1010f19d0d358cd4f76fc911d28 Reviewed-on: https://go-review.googlesource.com/59416 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
bce795fb1f
commit
1e093043e7
@ -188,8 +188,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) {
|
||||
remote, q = remote[:i], remote[i+1:]
|
||||
}
|
||||
s = ctxt.Syms.Lookup(local, 0)
|
||||
if local != f[1] {
|
||||
}
|
||||
if s.Type == 0 || s.Type == SXREF || s.Type == SHOSTOBJ {
|
||||
s.Dynimplib = lib
|
||||
s.Extname = remote
|
||||
@ -257,8 +255,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) {
|
||||
} else {
|
||||
s.Attr |= AttrCgoExportDynamic
|
||||
}
|
||||
if local != f[1] {
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user