mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
webdav/internal/xml: use the built-in min function
Starting from Go 1.21, the min functions are built-in. Therefore, we can remove the custom functions with the same name. Change-Id: Ia13e609358e19cf3863edc0f5a34e737cdcc291f Reviewed-on: https://go-review.googlesource.com/c/net/+/707555 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: Sean Liao <sean@liao.dev> Auto-Submit: Sean Liao <sean@liao.dev>
This commit is contained in:
@@ -258,13 +258,6 @@ func lookupXMLName(typ reflect.Type) (xmlname *fieldInfo) {
|
||||
return nil
|
||||
}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a <= b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// addFieldInfo adds finfo to tinfo.fields if there are no
|
||||
// conflicts, or if conflicts arise from previous fields that were
|
||||
// obtained from deeper embedded structures than finfo. In the latter
|
||||
|
||||
Reference in New Issue
Block a user