]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: remove dead code
authorHiroshi Ioka <hirochachacha@gmail.com>
Mon, 28 Aug 2017 06:07:19 +0000 (15:07 +0900)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Aug 2017 23:29:24 +0000 (23:29 +0000)
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>

src/cmd/link/internal/ld/go.go

index 8f7b60dab7c97b0353be840b4864ecdb8446d272..cf49c3faba217c088b8c8a30e50ea55b6e3f2776 100644 (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
                }