Merge pull request #35487 from miaoyq/remove-two-redundant-funcs

Automatic merge from submit-queue

'Max' and 'MIn' don't seem to used anywhere, so I would suggest removing them

Signed-off-by: Yanqiang Miao miao.yanqiang@zte.com.cn
pull/6/head
Kubernetes Submit Queue 2016-11-08 02:52:46 -08:00 committed by GitHub
commit 402f1fa33e
1 changed files with 0 additions and 16 deletions

View File

@ -164,22 +164,6 @@ func NewLimitRanger(client clientset.Interface, actions LimitRangerActions) (adm
}, nil }, nil
} }
// Min returns the lesser of its 2 arguments
func Min(a int64, b int64) int64 {
if a < b {
return a
}
return b
}
// Max returns the greater of its 2 arguments
func Max(a int64, b int64) int64 {
if a > b {
return a
}
return b
}
// defaultContainerResourceRequirements returns the default requirements for a container // defaultContainerResourceRequirements returns the default requirements for a container
// the requirement.Limits are taken from the LimitRange defaults (if specified) // the requirement.Limits are taken from the LimitRange defaults (if specified)
// the requirement.Requests are taken from the LimitRange default request (if specified) // the requirement.Requests are taken from the LimitRange default request (if specified)