• Håvard Haugen's avatar
    cmd/compile/internal/gc: remove dead code · 7c61d24f
    Håvard Haugen authored
    Found with https://github.com/remyoudompheng/go-misc/deadcode:
    
    deadcode: walk.go:2228:1: applywritebarrier_bv is unused
    deadcode: subr.go:355:1: gethunk is unused
    deadcode: subr.go:1991:1: localexpr is unused
    deadcode: dcl.go:82:1: poptodcl is unused
    deadcode: swt.go:810:1: dumpcase is unused
    deadcode: esc.go:251:1: satAdd8 is unused
    deadcode: esc.go:387:1: outputsPerTag is unused
    deadcode: obj.go:190:1: duint64 is unused
    deadcode: obj.go:287:1: dstringptr is unused
    deadcode: plive.go:95:1: xmalloc is unused
    deadcode: plive.go:119:1: freeblock is unused
    
    followed by
    
    deadcode: go.go:633:1: hunk is unused
    deadcode: go.go:635:1: nhunk is unused
    deadcode: go.go:637:1: thunk is unused
    
    after 'gethunk' was removed.
    
    Some dead code in bv.go, mparith3.go, and dcl.go was left as is.
    
    Passes go build -a -toolexec 'toolstash -cmp' std cmd.
    
    Change-Id: Ia63519adedc8650d7095572ddd454fd923d3204d
    Reviewed-on: https://go-review.googlesource.com/14610Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    7c61d24f
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...