Remove uint::max/min in favor if math::max/min

This commit is contained in:
Matt Brubeck 2011-10-27 13:04:06 -07:00 committed by Brian Anderson
parent 50d99ec32c
commit 5d6fe1a533
4 changed files with 7 additions and 9 deletions

View file

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