From bdd7bb5526d5ba6a3471ce03ae953bb6d793b501 Mon Sep 17 00:00:00 2001 From: LE Manh Cuong Date: Fri, 19 Apr 2019 16:35:24 +0700 Subject: [PATCH] cmd/compile: remove unused func nodfltconst Its only usage was removed in golang.org/cl/103860 Change-Id: I2a230b9475b0aadf3892b89f5e4ee6d4c5b70394 Reviewed-on: https://go-review.googlesource.com/c/go/+/172917 Reviewed-by: Keith Randall Run-TryBot: Keith Randall TryBot-Result: Gobot Gobot --- src/cmd/compile/internal/gc/subr.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/cmd/compile/internal/gc/subr.go b/src/cmd/compile/internal/gc/subr.go index 55b96e5c9b..04dd2f7c2d 100644 --- a/src/cmd/compile/internal/gc/subr.go +++ b/src/cmd/compile/internal/gc/subr.go @@ -416,12 +416,6 @@ func nodintconst(v int64) *Node { return nodlit(Val{u}) } -func nodfltconst(v *Mpflt) *Node { - u := newMpflt() - u.Set(v) - return nodlit(Val{u}) -} - func nodnil() *Node { return nodlit(Val{new(NilVal)}) }