Skip to content

Commit 1767b14

Browse files
adonovangopherbot
authored andcommitted
go/ssa: remove code with no effect
Pointed out by Dominik Honnef in CL 555075. Change-Id: I2f178870838d10163af6267386a8ddb0f6111a98 Reviewed-on: https://go-review.googlesource.com/c/tools/+/589655 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Tim King <[email protected]>
1 parent 2088083 commit 1767b14

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

go/ssa/func.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,6 @@ func targetedBlock(f *Function, tok token.Token) *BasicBlock {
188188

189189
// addResultVar adds a result for a variable v to f.results and v to f.returnVars.
190190
func (f *Function) addResultVar(v *types.Var) {
191-
name := v.Name()
192-
if name == "" {
193-
name = fmt.Sprintf("res%d", len(f.results))
194-
}
195191
result := emitLocalVar(f, v)
196192
f.results = append(f.results, result)
197193
f.returnVars = append(f.returnVars, v)

0 commit comments

Comments
 (0)