aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ir/node.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2020-12-07 20:05:17 -0800
committerAlexander Rakoczy <alex@golang.org>2020-12-14 11:43:32 -0500
commit9c5241e52020cf77683cd260a5fa3f3f029ed80c (patch)
tree8c29b19076a7219d0ec8fa65ccabc4e1a431ed70 /src/cmd/compile/internal/ir/node.go
parent267975dc4732b6f6a62a7d33a85de34efef180b7 (diff)
downloadgo-9c5241e52020cf77683cd260a5fa3f3f029ed80c.tar.gz
go-9c5241e52020cf77683cd260a5fa3f3f029ed80c.zip
[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>
Diffstat (limited to 'src/cmd/compile/internal/ir/node.go')
-rw-r--r--src/cmd/compile/internal/ir/node.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ir/node.go b/src/cmd/compile/internal/ir/node.go
index 598659a3db3..dc86b6c683e 100644
--- a/src/cmd/compile/internal/ir/node.go
+++ b/src/cmd/compile/internal/ir/node.go
@@ -20,7 +20,6 @@ import (
type Node interface {
// Formatting
Format(s fmt.State, verb rune)
- String() string
// Source position.
Pos() src.XPos