@@ -42,7 +42,6 @@ pub(crate) const FUNCTIONS: &[FunctionRegistration] = &[
4242 FunctionRegistration :: eager ( "std::number::exponential" , exponential, 2 ) ,
4343 FunctionRegistration :: eager ( "std::number::pi" , pi, 0 ) ,
4444 FunctionRegistration :: eager ( "std::number::euler" , euler, 0 ) ,
45- FunctionRegistration :: eager ( "std::number::infinity" , infinity, 0 ) ,
4645 FunctionRegistration :: eager ( "std::number::round_up" , round_up, 2 ) ,
4746 FunctionRegistration :: eager ( "std::number::round_down" , round_down, 2 ) ,
4847 FunctionRegistration :: eager ( "std::number::round" , round, 2 ) ,
@@ -396,15 +395,6 @@ fn euler(
396395 Signal :: Success ( value_from_f64 ( f64:: consts:: E ) )
397396}
398397
399- fn infinity (
400- args : & [ Argument ] ,
401- _ctx : & mut ValueStore ,
402- _run : & mut crate :: handler:: registry:: ThunkRunner < ' _ > ,
403- ) -> Signal {
404- no_args ! ( args) ;
405- Signal :: Success ( value_from_f64 ( f64:: INFINITY ) )
406- }
407-
408398fn round_up (
409399 args : & [ Argument ] ,
410400 _ctx : & mut ValueStore ,
@@ -1056,10 +1046,6 @@ mod tests {
10561046 assert ! (
10571047 ( expect_num( euler( & [ ] , & mut ctx, & mut run) ) - std:: f64 :: consts:: E ) . abs( ) < f64 :: EPSILON
10581048 ) ;
1059-
1060- let mut run = dummy_run;
1061- let inf = expect_num ( infinity ( & [ ] , & mut ctx, & mut run) ) ;
1062- assert ! ( inf. is_infinite( ) && inf. is_sign_positive( ) ) ;
10631049 }
10641050
10651051 #[ test]
0 commit comments