remove dead code from Scope impl

This commit is contained in:
Connor Skees 2020-06-28 03:28:50 -04:00
parent 4d23270b23
commit e211aff677

View File

@ -129,23 +129,5 @@ impl Scope {
self.functions.contains_key(&name) self.functions.contains_key(&name)
|| global_scope.fn_exists_no_global(&name) || global_scope.fn_exists_no_global(&name)
|| GLOBAL_FUNCTIONS.contains_key(name.clone().into_inner().as_str()) || GLOBAL_FUNCTIONS.contains_key(name.clone().into_inner().as_str())
// special functions not in the `GLOBAL_FUNCTIONS` map
|| matches!(
name.into_inner().as_str(),
"function-exists"
| "content-exists"
| "mixin-exists"
| "variable-exists"
| "global-variable-exists"
| "get-function"
| "call"
)
}
#[allow(dead_code)]
pub fn extend(&mut self, other: Scope) {
self.vars.extend(other.vars);
self.mixins.extend(other.mixins);
self.functions.extend(other.functions);
} }
} }