aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorqiulaidongfeng <2645477756@qq.com>2023-08-10 02:00:54 +0000
committerGopher Robot <gobot@golang.org>2023-08-11 03:21:10 +0000
commit8870b8d2817dc90da96ce6cfb767034d12965252 (patch)
tree0eb3a986ce68be6c39107077ef9da4138ec0a0af /src
parente3d7f7c3f8b0537d84e704986d88eb35271fa233 (diff)
downloadgo-8870b8d2817dc90da96ce6cfb767034d12965252.tar.xz
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 <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>
Diffstat (limited to 'src')
-rw-r--r--src/strconv/ftoa.go14
1 files changed, 0 insertions, 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
-}