Browse Source

No need for DumbAxon.

Herbert Vojčík 6 years ago
parent
commit
9e2859db67
4 changed files with 12 additions and 94 deletions
  1. 11 13
      src/Axxord-Tests.js
  2. 1 1
      src/Axxord-Tests.st
  3. 0 60
      src/Axxord.js
  4. 0 20
      src/Axxord.st

+ 11 - 13
src/Axxord-Tests.js

@@ -952,7 +952,7 @@ $globals.PlainConsumeTransformTest);
 
 
 
-$core.addClass("TestSpyAxon", $globals.DumbAxon, ["changedAspectLog"], "Axxord-Tests");
+$core.addClass("TestSpyAxon", $globals.Axon, ["changedAspectLog"], "Axxord-Tests");
 //>>excludeStart("ide", pragmas.excludeIdeData);
 $globals.TestSpyAxon.comment="I am an axon that logs changed aspects. I am useful in tests.";
 //>>excludeEnd("ide");
@@ -961,11 +961,11 @@ $core.method({
 selector: "changed:",
 protocol: "action",
 fn: function (anAspect){
-var self=this;
+var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$recv(self["@changedAspectLog"])._add_(anAspect);
+$recv($self["@changedAspectLog"])._add_(anAspect);
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"changed:",{anAspect:anAspect},$globals.TestSpyAxon)});
@@ -985,10 +985,8 @@ $core.method({
 selector: "changedAspectLog",
 protocol: "accessing",
 fn: function (){
-var self=this;
-var $1;
-$1=self["@changedAspectLog"];
-return $1;
+var self=this,$self=this;
+return $self["@changedAspectLog"];
 
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
@@ -1005,8 +1003,8 @@ $core.method({
 selector: "changedAspectLog:",
 protocol: "accessing",
 fn: function (anObject){
-var self=this;
-self["@changedAspectLog"]=anObject;
+var self=this,$self=this;
+$self["@changedAspectLog"]=anObject;
 return self;
 
 },
@@ -1024,19 +1022,19 @@ $core.method({
 selector: "initialize",
 protocol: "initialization",
 fn: function (){
-var self=this;
+var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
 (
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
-$ctx1.supercall = true, 
+$ctx1.supercall = true,
 //>>excludeEnd("ctx");
-$globals.TestSpyAxon.superclass.fn.prototype._initialize.apply($recv(self), []));
+($globals.TestSpyAxon.superclass||$boot.nilAsClass).fn.prototype._initialize.apply($self, []));
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 $ctx1.supercall = false;
 //>>excludeEnd("ctx");;
-self["@changedAspectLog"]=[];
+$self["@changedAspectLog"]=[];
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"initialize",{},$globals.TestSpyAxon)});

+ 1 - 1
src/Axxord-Tests.st

@@ -216,7 +216,7 @@ model := #(2 #(1 0)).
 self should: [model axes: #() transform: [:r | #new]] raise: Error
 ! !
 
-DumbAxon subclass: #TestSpyAxon
+Axon subclass: #TestSpyAxon
 	instanceVariableNames: 'changedAspectLog'
 	package: 'Axxord-Tests'!
 !TestSpyAxon commentStamp!

+ 0 - 60
src/Axxord.js

@@ -555,66 +555,6 @@ $globals.Axon);
 
 
 
-$core.addClass("DumbAxon", $globals.Axon, [], "Axxord");
-//>>excludeStart("ide", pragmas.excludeIdeData);
-$globals.DumbAxon.comment="I am an axon that does nothing.";
-//>>excludeEnd("ide");
-$core.addMethod(
-$core.method({
-selector: "add:",
-protocol: "as yet unclassified",
-fn: function (anInterest){
-var self=this,$self=this;
-return self;
-
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["anInterest"],
-source: "add: anInterest\x0a\x09\x22pass\x22",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: []
-}),
-$globals.DumbAxon);
-
-$core.addMethod(
-$core.method({
-selector: "clean",
-protocol: "as yet unclassified",
-fn: function (){
-var self=this,$self=this;
-return self;
-
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: [],
-source: "clean\x0a\x09\x22pass\x22",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: []
-}),
-$globals.DumbAxon);
-
-$core.addMethod(
-$core.method({
-selector: "do:",
-protocol: "as yet unclassified",
-fn: function (aBlock){
-var self=this,$self=this;
-return self;
-
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aBlock"],
-source: "do: aBlock\x0a\x09\x22pass\x22",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: []
-}),
-$globals.DumbAxon);
-
-
-
 $core.addClass("SimpleAxon", $globals.Axon, ["queue"], "Axxord");
 $core.addMethod(
 $core.method({

+ 0 - 20
src/Axxord.st

@@ -124,26 +124,6 @@ registerIn: anObject
 <inlineJS: 'anObject.$axon$=self'>
 ! !
 
-Axon subclass: #DumbAxon
-	instanceVariableNames: ''
-	package: 'Axxord'!
-!DumbAxon commentStamp!
-I am an axon that does nothing.!
-
-!DumbAxon methodsFor: 'as yet unclassified'!
-
-add: anInterest
-	"pass"
-!
-
-clean
-	"pass"
-!
-
-do: aBlock
-	"pass"
-! !
-
 Axon subclass: #SimpleAxon
 	instanceVariableNames: 'queue'
 	package: 'Axxord'!