Browse Source

Remove ivar that was never used.

Herby Vojčík 4 years ago
parent
commit
eab0e5857a
3 changed files with 5 additions and 49 deletions
  1. 3 0
      lang/API-CHANGES.txt
  2. 1 38
      lang/src/Compiler-Semantic.js
  3. 1 11
      lang/src/Compiler-Semantic.st

+ 3 - 0
lang/API-CHANGES.txt

@@ -27,6 +27,9 @@
 + amber/helpers exports >>
   + $nil
 
+- AliasVar >>
+  - node
+  - node:
 - Error >>
   - beSmalltalkError
   - isSmalltalkError

+ 1 - 38
lang/src/Compiler-Semantic.js

@@ -1371,7 +1371,7 @@ return $recv($1)._yourself();
 $globals.ScopeVar.a$cls);
 
 
-$core.addClass("AliasVar", $globals.ScopeVar, ["node"], "Compiler-Semantic");
+$core.addClass("AliasVar", $globals.ScopeVar, [], "Compiler-Semantic");
 //>>excludeStart("ide", pragmas.excludeIdeData);
 $globals.AliasVar.comment="I am an internally defined variable by the compiler";
 //>>excludeEnd("ide");
@@ -1393,43 +1393,6 @@ return true;
 }; }),
 $globals.AliasVar);
 
-$core.addMethod(
-$core.method({
-selector: "node",
-protocol: "accessing",
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "node\x0a\x09^ node",
-referencedClasses: [],
-//>>excludeEnd("ide");
-pragmas: [],
-messageSends: []
-}, function ($methodClass){ return function (){
-var self=this,$self=this;
-return $self.node;
-
-}; }),
-$globals.AliasVar);
-
-$core.addMethod(
-$core.method({
-selector: "node:",
-protocol: "accessing",
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aNode"],
-source: "node: aNode\x0a\x09node := aNode",
-referencedClasses: [],
-//>>excludeEnd("ide");
-pragmas: [],
-messageSends: []
-}, function ($methodClass){ return function (aNode){
-var self=this,$self=this;
-$self.node=aNode;
-return self;
-
-}; }),
-$globals.AliasVar);
-
 
 
 $core.addClass("ArgVar", $globals.ScopeVar, [], "Compiler-Semantic");

+ 1 - 11
lang/src/Compiler-Semantic.st

@@ -288,21 +288,11 @@ on: aString
 ! !
 
 ScopeVar subclass: #AliasVar
-	slots: {#node}
+	slots: {}
 	package: 'Compiler-Semantic'!
 !AliasVar commentStamp!
 I am an internally defined variable by the compiler!
 
-!AliasVar methodsFor: 'accessing'!
-
-node
-	^ node
-!
-
-node: aNode
-	node := aNode
-! !
-
 !AliasVar methodsFor: 'testing'!
 
 isImmutable