mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.regabi] cmd/compile: remove unnecessary String methods
There were only a few places these were still used, none of which justify generating all this code. Instead rewrite them to use fmt.Sprint or simpler means. Passes buildall w/ toolstash -cmp. Change-Id: Ibd123a1696941a597f0cb4dcc96cda8ced672140 Reviewed-on: https://go-review.googlesource.com/c/go/+/276072 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
267975dc47
commit
9c5241e520
9 changed files with 12 additions and 80 deletions
|
|
@ -20,7 +20,6 @@ import (
|
|||
type Node interface {
|
||||
// Formatting
|
||||
Format(s fmt.State, verb rune)
|
||||
String() string
|
||||
|
||||
// Source position.
|
||||
Pos() src.XPos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue