aboutsummaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorMuhammad Falak R Wani <falakreyaz@gmail.com>2023-08-07 13:43:52 +0000
committerGopher Robot <gobot@golang.org>2023-08-07 18:49:51 +0000
commit78af0bbc65a06461e05318619acdaf35b630632a (patch)
tree88770e4e67e0ece4ca5ef05a6c36b0e78bc4d0d2 /src/strings
parent64c1be144fdf804c5cfc6cb06eb68cc9496eedba (diff)
downloadgo-78af0bbc65a06461e05318619acdaf35b630632a.tar.gz
go-78af0bbc65a06461e05318619acdaf35b630632a.zip
strings: use the builtin max function
Change-Id: I9093c0ce822f0620152a7b911321c57bc50dc90b GitHub-Last-Rev: dc6be231b315262e13925814b16786618ef5dad4 GitHub-Pull-Request: golang/go#61807 Reviewed-on: https://go-review.googlesource.com/c/go/+/516615 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/search.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/strings/search.go b/src/strings/search.go
index e5bffbbfe8..e1ace3e795 100644
--- a/src/strings/search.go
+++ b/src/strings/search.go
@@ -115,10 +115,3 @@ func (f *stringFinder) next(text string) int {
}
return -1
}
-
-func max(a, b int) int {
- if a > b {
- return a
- }
- return b
-}