diff options
| author | bors <bors@rust-lang.org> | 2013-08-09 00:17:06 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-09 00:17:06 -0700 |
| commit | 094e4260f8b0a1d1cddf235373d2588cefd167b9 (patch) | |
| tree | e82c9a44184d9d08df776832e76c9083ae3696da /src/libstd/num | |
| parent | a931e04b757a795e3867ea98c81cee731bd54ac1 (diff) | |
| parent | b4d6ae5bb8959affdb91a6b6791e725f97787344 (diff) | |
| download | rust-094e4260f8b0a1d1cddf235373d2588cefd167b9.tar.gz rust-094e4260f8b0a1d1cddf235373d2588cefd167b9.zip | |
auto merge of #8357 : omasanori/rust/cleanup, r=alexcrichton
I feel it's time to eliminate them (and add some testcases.)
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/int_macros.rs | 6 | ||||
| -rw-r--r-- | src/libstd/num/uint_macros.rs | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/libstd/num/int_macros.rs b/src/libstd/num/int_macros.rs index b692bedebfd..41da9a6ccbe 100644 --- a/src/libstd/num/int_macros.rs +++ b/src/libstd/num/int_macros.rs @@ -130,12 +130,6 @@ impl Num for $T {} impl Ord for $T { #[inline] fn lt(&self, other: &$T) -> bool { return (*self) < (*other); } - #[inline] - fn le(&self, other: &$T) -> bool { return (*self) <= (*other); } - #[inline] - fn ge(&self, other: &$T) -> bool { return (*self) >= (*other); } - #[inline] - fn gt(&self, other: &$T) -> bool { return (*self) > (*other); } } #[cfg(not(test))] diff --git a/src/libstd/num/uint_macros.rs b/src/libstd/num/uint_macros.rs index 29b8f29d87d..86b5b4ddfc0 100644 --- a/src/libstd/num/uint_macros.rs +++ b/src/libstd/num/uint_macros.rs @@ -131,12 +131,6 @@ impl Num for $T {} impl Ord for $T { #[inline] fn lt(&self, other: &$T) -> bool { (*self) < (*other) } - #[inline] - fn le(&self, other: &$T) -> bool { (*self) <= (*other) } - #[inline] - fn ge(&self, other: &$T) -> bool { (*self) >= (*other) } - #[inline] - fn gt(&self, other: &$T) -> bool { (*self) > (*other) } } #[cfg(not(test))] |
