Remove further unnecessary primitive comparison checks
This commit is contained in:
parent
993f56798e
commit
c2cdc302c3
|
@ -646,19 +646,6 @@ impl<'gc> Value<'gc> {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
|
||||||
if num_self == num_other
|
|
||||||
|| num_self.is_infinite() && num_self.is_sign_positive()
|
|
||||||
|| num_other.is_infinite() && num_other.is_sign_negative()
|
|
||||||
{
|
|
||||||
return Ok(Some(false));
|
|
||||||
}
|
|
||||||
|
|
||||||
if num_self.is_infinite() && num_self.is_sign_negative()
|
|
||||||
|| num_other.is_infinite() && num_other.is_sign_positive()
|
|
||||||
{
|
|
||||||
return Ok(Some(true));
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(Some(num_self < num_other))
|
Ok(Some(num_self < num_other))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue