From cd570558c32e9b67e298d524a542a3e4ef9174d8 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 21 May 2020 09:31:31 +0800 Subject: [PATCH] Remove count_args macro. --- src/fn_register.rs | 6 ------ 1 file changed, 6 deletions(-) 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),*) => {