Merge pull request #25492 from Juneezee/minmax

pkg/util: remove redundant min/max helper functions
This commit is contained in:
openshift-merge-bot[bot] 2025-03-06 19:56:47 +00:00 committed by GitHub
commit 0ca749f536
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 14 deletions

View File

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