diff --git a/library/src/compute/calc.rs b/library/src/compute/calc.rs index c1ae683e2..84942e701 100644 --- a/library/src/compute/calc.rs +++ b/library/src/compute/calc.rs @@ -43,7 +43,6 @@ pub fn module() -> Module { scope.define("even", even_func()); scope.define("odd", odd_func()); scope.define("rem", rem_func()); - scope.define("mod", mod_func()); scope.define("quo", quo_func()); scope.define("inf", f64::INFINITY); scope.define("nan", f64::NAN); @@ -935,26 +934,6 @@ pub fn rem( Ok(dividend.apply2(divisor.v, Rem::rem, Rem::rem)) } -/// Calculate the modulus of two numbers. (Deprecated) -/// -/// **This function is deprecated in favor of `rem`. It will be removed in -/// a future update.** -/// -/// Display: Modulus -/// Category: calculate -#[func] -pub fn mod_( - /// The dividend of the remainder. - dividend: Num, - /// The divisor of the remainder. - divisor: Spanned, -) -> SourceResult { - if divisor.v.float() == 0.0 { - bail!(divisor.span, "divisor must not be zero"); - } - Ok(dividend.apply2(divisor.v, Rem::rem, Rem::rem)) -} - /// Calculate the quotient of two numbers. /// /// ## Example { #example }