Browse Source

Remove message never sent.

Herby Vojčík 4 years ago
parent
commit
75feddedce

+ 5 - 0
lang/API-CHANGES.txt

@@ -30,6 +30,8 @@
 - AliasVar >>
   - node
   - node:
+- ArgVar >>
+  - isArgVar
 - Error >>
   - beSmalltalkError
   - isSmalltalkError
@@ -42,6 +44,7 @@
 - MethodLexicalScope >>
   - unknownVariables
 - ScopeVar >>
+  - isArgVar
   - isUnknownVar
 - SemanticAnalyzer >>
   - isVariableUndefined:inPackage:
@@ -50,6 +53,8 @@
   - shouldBeInlined:
 - UnknownVar >>
   - isUnknownVar
+- VariableNode >>
+  - isArgument
 - amber/boot api >>
   - addElement(arraySet, el)
   - removeElement(arraySet, el)

+ 0 - 23
lang/src/Compiler-AST.js

@@ -2487,29 +2487,6 @@ return self;
 }; }),
 $globals.VariableNode);
 
-$core.addMethod(
-$core.method({
-selector: "isArgument",
-protocol: "testing",
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "isArgument\x0a\x09^ self binding isArgVar",
-referencedClasses: [],
-//>>excludeEnd("ide");
-pragmas: [],
-messageSends: ["isArgVar", "binding"]
-}, function ($methodClass){ return function (){
-var self=this,$self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-return $recv($self._binding())._isArgVar();
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"isArgument",{})});
-//>>excludeEnd("ctx");
-}; }),
-$globals.VariableNode);
-
 $core.addMethod(
 $core.method({
 selector: "isImmutable",

+ 0 - 4
lang/src/Compiler-AST.st

@@ -630,10 +630,6 @@ navigationLink
 
 !VariableNode methodsFor: 'testing'!
 
-isArgument
-	^ self binding isArgVar
-!
-
 isImmutable
 	^ self binding isImmutable
 !

+ 0 - 36
lang/src/Compiler-Semantic.js

@@ -1077,24 +1077,6 @@ return $recv($self._name())._asVariableName();
 }; }),
 $globals.ScopeVar);
 
-$core.addMethod(
-$core.method({
-selector: "isArgVar",
-protocol: "testing",
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "isArgVar\x0a\x09^ false",
-referencedClasses: [],
-//>>excludeEnd("ide");
-pragmas: [],
-messageSends: []
-}, function ($methodClass){ return function (){
-var self=this,$self=this;
-return false;
-
-}; }),
-$globals.ScopeVar);
-
 $core.addMethod(
 $core.method({
 selector: "isClassRefVar",
@@ -1399,24 +1381,6 @@ $core.addClass("ArgVar", $globals.ScopeVar, [], "Compiler-Semantic");
 //>>excludeStart("ide", pragmas.excludeIdeData);
 $globals.ArgVar.comment="I am an argument of a method or block.";
 //>>excludeEnd("ide");
-$core.addMethod(
-$core.method({
-selector: "isArgVar",
-protocol: "testing",
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "isArgVar\x0a\x09^ true",
-referencedClasses: [],
-//>>excludeEnd("ide");
-pragmas: [],
-messageSends: []
-}, function ($methodClass){ return function (){
-var self=this,$self=this;
-return true;
-
-}; }),
-$globals.ArgVar);
-
 $core.addMethod(
 $core.method({
 selector: "isImmutable",

+ 0 - 8
lang/src/Compiler-Semantic.st

@@ -236,10 +236,6 @@ scope: aScope
 
 !ScopeVar methodsFor: 'testing'!
 
-isArgVar
-	^ false
-!
-
 isClassRefVar
 	^ false
 !
@@ -307,10 +303,6 @@ I am an argument of a method or block.!
 
 !ArgVar methodsFor: 'testing'!
 
-isArgVar
-	^ true
-!
-
 isImmutable
 	^ true
 ! !