Skip to content

Commit 51f657b

Browse files
cuishuanggopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Reviewed-by: Junyang Shao <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Sean Liao <[email protected]>
1 parent f2e909b commit 51f657b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

webdav/internal/xml/typeinfo.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,6 @@ func lookupXMLName(typ reflect.Type) (xmlname *fieldInfo) {
258258
return nil
259259
}
260260

261-
func min(a, b int) int {
262-
if a <= b {
263-
return a
264-
}
265-
return b
266-
}
267-
268261
// addFieldInfo adds finfo to tinfo.fields if there are no
269262
// conflicts, or if conflicts arise from previous fields that were
270263
// obtained from deeper embedded structures than finfo. In the latter

0 commit comments

Comments
 (0)