1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:34:42 -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:
Hiroshi Ioka 2017-08-28 15:07:19 +09:00 committed by Ian Lance Taylor
parent bce795fb1f
commit 1e093043e7

View File

@ -188,8 +188,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) {
remote, q = remote[:i], remote[i+1:] remote, q = remote[:i], remote[i+1:]
} }
s = ctxt.Syms.Lookup(local, 0) s = ctxt.Syms.Lookup(local, 0)
if local != f[1] {
}
if s.Type == 0 || s.Type == SXREF || s.Type == SHOSTOBJ { if s.Type == 0 || s.Type == SXREF || s.Type == SHOSTOBJ {
s.Dynimplib = lib s.Dynimplib = lib
s.Extname = remote s.Extname = remote
@ -257,8 +255,6 @@ func loadcgo(ctxt *Link, file string, pkg string, p string) {
} else { } else {
s.Attr |= AttrCgoExportDynamic s.Attr |= AttrCgoExportDynamic
} }
if local != f[1] {
}
continue continue
} }