From 2964e03f1fbc499247bb6c3365475a91ef64547a Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Tue, 8 Aug 2023 09:34:45 +0800 Subject: [PATCH] strconv: using the built-in min/max function Change-Id: Iab170943e6e80ffe08bb061e563c106b53740372 --- 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 -}