]> Cypherpunks repositories - gostls13.git/commitdiff
strconv: use the built-in min/max function
authorqiulaidongfeng <2645477756@qq.com>
Thu, 10 Aug 2023 02:00:54 +0000 (02:00 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 11 Aug 2023 03:21:10 +0000 (03:21 +0000)
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 <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/strconv/ftoa.go

index fcbf4df13b6dc9b13f2247255307da2649d9e34b..c514e663da1955978dc3dc4efd81edfa7b7ec591 100644 (file)
@@ -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
-}