Remove uint::max/min in favor if math::max/min
This commit is contained in:
parent
50d99ec32c
commit
5d6fe1a533
4 changed files with 7 additions and 9 deletions
|
|
@ -55,10 +55,6 @@ pure fn ge(x: uint, y: uint) -> bool { ret x >= y; }
|
|||
/* Predicate: gt */
|
||||
pure fn gt(x: uint, y: uint) -> bool { ret x > y; }
|
||||
|
||||
fn max(x: uint, y: uint) -> uint { if x > y { ret x; } ret y; }
|
||||
|
||||
fn min(x: uint, y: uint) -> uint { if x > y { ret y; } ret x; }
|
||||
|
||||
/*
|
||||
Function: range
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue