From 5b4ce994c162775e91aa00c942571bc0ac8b1eca Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Tue, 8 Aug 2023 09:40:00 +0800 Subject: [PATCH] math/big: using the min built-in function Change-Id: I9e95806116a8547ec782f66226d1b1382c6156de --- src/math/big/ftoa.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/math/big/ftoa.go b/src/math/big/ftoa.go index 5506e6e425..6daea34496 100644 --- a/src/math/big/ftoa.go +++ b/src/math/big/ftoa.go @@ -444,13 +444,6 @@ func (x *Float) fmtP(buf []byte) []byte { return strconv.AppendInt(buf, int64(x.exp), 10) } -func min(x, y int) int { - if x < y { - return x - } - return y -} - var _ fmt.Formatter = &floatZero // *Float must implement fmt.Formatter // Format implements fmt.Formatter. It accepts all the regular