[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:
Matthew Dempsky 2020-12-07 20:05:17 -08:00 committed by Alexander Rakoczy
parent 267975dc47
commit 9c5241e520
9 changed files with 12 additions and 80 deletions

View file

@ -20,7 +20,6 @@ import (
type Node interface {
// Formatting
Format(s fmt.State, verb rune)
String() string
// Source position.
Pos() src.XPos