From 1e093043e731435b37644cde80451298a514faef Mon Sep 17 00:00:00 2001 From: Hiroshi Ioka Date: Mon, 28 Aug 2017 15:07:19 +0900 Subject: [PATCH] cmd/link: remove dead code Change-Id: I8a54235c8b7bf1010f19d0d358cd4f76fc911d28 Reviewed-on: https://go-review.googlesource.com/59416 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/cmd/link/internal/ld/go.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/cmd/link/internal/ld/go.go b/src/cmd/link/internal/ld/go.go index 8f7b60dab7..cf49c3faba 100644 --- a/src/cmd/link/internal/ld/go.go +++ b/src/cmd/link/internal/ld/go.go @@ -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 }