From cc99085403a22d56ff01c6be6a9ad47e818cc33a Mon Sep 17 00:00:00 2001 From: z78078 Date: Fri, 8 Jul 2022 17:12:53 +0800 Subject: [PATCH] move the changes to nac3artiq --- nac3core/src/toplevel/composer.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/nac3core/src/toplevel/composer.rs b/nac3core/src/toplevel/composer.rs index 027777f8..94491d11 100644 --- a/nac3core/src/toplevel/composer.rs +++ b/nac3core/src/toplevel/composer.rs @@ -1073,21 +1073,6 @@ impl TopLevelComposer { let mut method_var_map: HashMap = HashMap::new(); - // This part check if __init__ method decorate with inappropriate decorator (rpc) - if name == &"__init__".into() { - if let Some(_) = decorator_list - .iter() - .find(|ast::Located { node, .. }| match node { - &ast::ExprKind::Name { id, .. } => id == "rpc".into(), - _ => false - }) { - return Err(format!( - "class {} constructor {} (at {}) must not be decorated with rpc", - _class_name, name, b.location - )); - } - } - let arg_types: Vec = { // check method parameters cannot have same name let mut defined_parameter_name: HashSet<_> = HashSet::new();