From 8870b8d2817dc90da96ce6cfb767034d12965252 Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Thu, 10 Aug 2023 02:00:54 +0000 Subject: [PATCH] strconv: use the built-in min/max function Change-Id: Iab170943e6e80ffe08bb061e563c106b53740372 Change-Id: Iab170943e6e80ffe08bb061e563c106b53740372 GitHub-Last-Rev: 2964e03f1fbc499247bb6c3365475a91ef64547a GitHub-Pull-Request: golang/go#61828 Reviewed-on: https://go-review.googlesource.com/c/go/+/516875 TryBot-Result: Gopher Robot Reviewed-by: Russ Cox Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Michael Knyszek --- src/strconv/ftoa.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/strconv/ftoa.go b/src/strconv/ftoa.go index fcbf4df13b..c514e663da 100644 --- a/src/strconv/ftoa.go +++ b/src/strconv/ftoa.go @@ -568,17 +568,3 @@ func fmtX(dst []byte, prec int, fmt byte, neg bool, mant uint64, exp int, flt *f return dst } - -func min(a, b int) int { - if a < b { - return a - } - return b -} - -func max(a, b int) int { - if a > b { - return a - } - return b -} -- 2.50.0