From 090ec611dffeb896f767e6e4f20624a796c0e826 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Wed, 28 Sep 2022 21:25:56 +0800 Subject: [PATCH] cmd/asm: delete unused func newAddr Change-Id: I62f38aa07e9c6e2f0947d23adc7a1b453277c790 Reviewed-on: https://go-review.googlesource.com/c/go/+/435942 TryBot-Result: Gopher Robot Run-TryBot: Cherry Mui Reviewed-by: Cherry Mui Run-TryBot: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov Auto-Submit: Ian Lance Taylor --- src/cmd/asm/internal/asm/asm.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/cmd/asm/internal/asm/asm.go b/src/cmd/asm/internal/asm/asm.go index 754139c566..6925d73834 100644 --- a/src/cmd/asm/internal/asm/asm.go +++ b/src/cmd/asm/internal/asm/asm.go @@ -897,13 +897,6 @@ func (p *Parser) asmInstruction(op obj.As, cond string, a []obj.Addr) { p.append(prog, cond, true) } -// newAddr returns a new(Addr) initialized to x. -func newAddr(x obj.Addr) *obj.Addr { - p := new(obj.Addr) - *p = x - return p -} - // symbolName returns the symbol name, or an error string if none if available. func symbolName(addr *obj.Addr) string { if addr.Sym != nil { -- 2.50.0