Remove further unnecessary primitive comparison checks

This commit is contained in:
David Wendt 2020-08-10 18:06:54 -04:00 committed by Mike Welsh
parent 993f56798e
commit c2cdc302c3
1 changed files with 0 additions and 13 deletions

View File

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