1
0
Jelajahi Sumber

compiler: remove methods that are never used

Herbert Vojčík 9 tahun lalu
induk
melakukan
e871165c3b
4 mengubah file dengan 0 tambahan dan 67 penghapusan
  1. 0 32
      src/Compiler-Core.js
  2. 0 6
      src/Compiler-Core.st
  3. 0 25
      src/Kernel-Classes.js
  4. 0 4
      src/Kernel-Classes.st

+ 0 - 32
src/Compiler-Core.js

@@ -419,38 +419,6 @@ messageSends: ["currentClass:", "source:", "compile:"]
 }),
 $globals.Compiler);
 
-$core.addMethod(
-$core.method({
-selector: "compileExpression:",
-protocol: 'compiling',
-fn: function (aString){
-var self=this;
-function $DoIt(){return $globals.DoIt||(typeof DoIt=="undefined"?nil:DoIt)}
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-var $1,$2;
-self._currentClass_($DoIt());
-$1=$recv("doIt ^ [ ".__comma(aString)).__comma(" ] value");
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-$ctx1.sendIdx[","]=1;
-//>>excludeEnd("ctx");
-self._source_($1);
-$2=self._compileNode_(self._parse_(self._source()));
-return $2;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"compileExpression:",{aString:aString},$globals.Compiler)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aString"],
-source: "compileExpression: aString\x0a\x09self currentClass: DoIt.\x0a\x09self source: 'doIt ^ [ ', aString, ' ] value'.\x0a\x09^ self compileNode: (self parse: self source)",
-referencedClasses: ["DoIt"],
-//>>excludeEnd("ide");
-messageSends: ["currentClass:", "source:", ",", "compileNode:", "parse:", "source"]
-}),
-$globals.Compiler);
-
 $core.addMethod(
 $core.method({
 selector: "compileExpression:on:",

+ 0 - 6
src/Compiler-Core.st

@@ -131,12 +131,6 @@ compile: aString forClass: aClass
 	^ self compile: aString
 !
 
-compileExpression: aString
-	self currentClass: DoIt.
-	self source: 'doIt ^ [ ', aString, ' ] value'.
-	^ self compileNode: (self parse: self source)
-!
-
 compileExpression: aString on: anObject
 	self currentClass: anObject class.
 	self source: 'xxxDoIt ^ [ ', aString, ' ] value'.

+ 0 - 25
src/Kernel-Classes.js

@@ -543,31 +543,6 @@ messageSends: ["commentStamp"]
 }),
 $globals.Behavior);
 
-$core.addMethod(
-$core.method({
-selector: "compile:",
-protocol: 'compiling',
-fn: function (aString){
-var self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-var $1;
-$1=self._compile_protocol_(aString,"");
-return $1;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"compile:",{aString:aString},$globals.Behavior)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aString"],
-source: "compile: aString\x0a\x09^ self compile: aString protocol: ''",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: ["compile:protocol:"]
-}),
-$globals.Behavior);
-
 $core.addMethod(
 $core.method({
 selector: "compile:protocol:",

+ 0 - 4
src/Kernel-Classes.st

@@ -268,10 +268,6 @@ addCompiledMethod: aMethod
 				announce: announcement
 !
 
-compile: aString
-	^ self compile: aString protocol: ''
-!
-
 compile: aString protocol: anotherString
 	^ Compiler new
 		install: aString