Redundant with the `kind: ModuleKind` field already.
This commit is contained in:
KtorZ 2022-12-17 11:54:39 +01:00
parent 1178fa3f01
commit a34d7d4dbb
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 0 additions and 9 deletions

View File

@ -223,15 +223,6 @@ pub struct CheckedModule {
pub extra: ModuleExtra, pub extra: ModuleExtra,
} }
impl CheckedModule {
pub fn is_library(&self) -> bool {
self.ast.definitions().any(|def| match def {
Definition::Fn(func_def) => VALIDATOR_NAMES.contains(&func_def.name.as_str()),
_ => false,
})
}
}
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct CheckedModules(HashMap<String, CheckedModule>); pub struct CheckedModules(HashMap<String, CheckedModule>);