mirror of https://github.com/containers/podman.git
Merge pull request #25492 from Juneezee/minmax
pkg/util: remove redundant min/max helper functions
This commit is contained in:
commit
0ca749f536
|
@ -428,20 +428,6 @@ func parseTriple(spec []string, parentMapping []ruser.IDMap, mapSetting string)
|
|||
return mappings, flags, nil
|
||||
}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func max(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// Remove any conflicting mapping from mapping present in extension, so
|
||||
// extension can be appended to mapping without conflicts.
|
||||
// Returns the resulting mapping, with extension appended to it.
|
||||
|
|
Loading…
Reference in New Issue