about summary refs log tree commit diff
path: root/src/libcore/num/f64.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/num/f64.rs')
-rw-r--r--src/libcore/num/f64.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs
index d140df30c42..6e2496e2e45 100644
--- a/src/libcore/num/f64.rs
+++ b/src/libcore/num/f64.rs
@@ -270,18 +270,8 @@ impl Orderable for f64 {
         if self.is_NaN() || other.is_NaN() { Float::NaN() } else { fmax(*self, *other) }
     }
 
-    #[cfg(stage0)]
-    #[inline(always)]
-    fn clamp(&self, mn: &f64, mx: &f64) -> f64 {
-        if self.is_NaN() { *self }
-        else if !(*self <= *mx) { *mx }
-        else if !(*self >= *mn) { *mn }
-        else { *self }
-    }
-
     /// Returns the number constrained within the range `mn <= self <= mx`.
     /// If any of the numbers are `NaN` then `NaN` is returned.
-    #[cfg(not(stage0))]
     #[inline(always)]
     fn clamp(&self, mn: &f64, mx: &f64) -> f64 {
         cond!(