refactor: replace min/max helpers with built-in min/max

We upgraded our minimum Go version in commit ca24447090. We can now use
the built-in `min` and `max` functions directly.

Reference: https://go.dev/ref/spec#Min_and_max
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
Eng Zer Jun 2024-08-17 16:55:21 +08:00 committed by Nick Craig-Wood
parent e0b08883cb
commit d1c84f9115
2 changed files with 0 additions and 22 deletions

View file

@ -1410,14 +1410,6 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Read
return
}
// min returns the smallest of x, y
func min(x, y int64) int64 {
if x < y {
return x
}
return y
}
// Get the segments for a large object
//
// It returns the names of the segments and the container that they live in