From e211aff677d6fdb9fbab8c6ba445e0db9ab59914 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Sun, 28 Jun 2020 03:28:50 -0400 Subject: [PATCH] remove dead code from Scope impl --- src/scope.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/scope.rs b/src/scope.rs index 587a3ae..587376c 100644 --- a/src/scope.rs +++ b/src/scope.rs @@ -129,23 +129,5 @@ impl Scope { self.functions.contains_key(&name) || global_scope.fn_exists_no_global(&name) || 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); } }