strings: use the builtin max function

Change-Id: I9093c0ce822f0620152a7b911321c57bc50dc90b
GitHub-Last-Rev: dc6be231b3
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>
This commit is contained in:
Muhammad Falak R Wani 2023-08-07 13:43:52 +00:00 committed by Gopher Robot
parent 64c1be144f
commit 78af0bbc65
1 changed files with 0 additions and 7 deletions

View File

@ -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
}