From 2dcd811ecef601d9d90471dc5267e200b2021759 Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Sat, 2 Jan 2021 12:05:38 -0600 Subject: [PATCH] Delete no_kwargs! macro --- vm/src/macros.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/vm/src/macros.rs b/vm/src/macros.rs index 095ce0365..2734842fc 100644 --- a/vm/src/macros.rs +++ b/vm/src/macros.rs @@ -1,16 +1,3 @@ -#[macro_export] -macro_rules! no_kwargs { - ( $vm: ident, $args:ident ) => { - // Zero-arg case - if $args.kwargs.len() != 0 { - return Err($vm.new_type_error(format!( - "Expected no keyword arguments (got: {})", - $args.kwargs.len() - ))); - } - }; -} - #[macro_export] macro_rules! py_module { ( $vm:expr, $module_name:expr, { $($name:expr => $value:expr),* $(,)? }) => {{