aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-07-15 15:16:11 +0800
committerGitHub <noreply@github.com>2017-07-15 15:16:11 +0800
commita5ffe2c23fdfaf13f3466a01d9dd9d590c5e8672 (patch)
tree1c208aca7fc34b06470755bb9127da40b91347c7 /lib/scope.js
parent9282e7b0c6f20bc95ba3d2bab2bbaccebab03c9a (diff)
downloadtracifyjs-a5ffe2c23fdfaf13f3466a01d9dd9d590c5e8672.tar.gz
tracifyjs-a5ffe2c23fdfaf13f3466a01d9dd9d590c5e8672.zip
drop `unused` builtin globals under `unsafe` (#2236)
fixes #2233
Diffstat (limited to 'lib/scope.js')
-rw-r--r--lib/scope.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/scope.js b/lib/scope.js
index f8ecedb5..df7b2076 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -373,14 +373,6 @@ AST_Symbol.DEFMETHOD("unreferenced", function(){
&& !(this.scope.uses_eval || this.scope.uses_with);
});
-AST_Symbol.DEFMETHOD("undeclared", function(){
- return this.definition().undeclared;
-});
-
-AST_LabelRef.DEFMETHOD("undeclared", return_false);
-
-AST_Label.DEFMETHOD("undeclared", return_false);
-
AST_Symbol.DEFMETHOD("definition", function(){
return this.thedef;
});