diff --git a/src/fn_register.rs b/src/fn_register.rs index 4b98f184..f33c5855 100644 --- a/src/fn_register.rs +++ b/src/fn_register.rs @@ -190,12 +190,6 @@ impl RegisterPlugin for Engine { } } -/// This macro counts the number of arguments via recursion. -macro_rules! count_args { - () => { 0_usize }; - ( $head:ident $($tail:ident)* ) => { 1_usize + count_args!($($tail)*) }; -} - /// This macro creates a closure wrapping a registered function. macro_rules! make_func { ($fn:ident : $map:expr ; $($par:ident => $convert:expr),*) => {