1
0
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:
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:]
}
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
}