Browse Source

Remove Object >> throw:.

Herbert Vojčík 7 years ago
parent
commit
b5e366f83d
3 changed files with 3 additions and 28 deletions
  1. 3 0
      API-CHANGES.txt
  2. 0 24
      src/Kernel-Objects.js
  3. 0 4
      src/Kernel-Objects.st

+ 3 - 0
API-CHANGES.txt

@@ -2,6 +2,9 @@
 
 * Remove class RethrowErrorHandler (hack for cli before 0.12.3).
 
+- Object >>
+  - throw:
+
 
 0.17.0:
 

+ 0 - 24
src/Kernel-Objects.js

@@ -1555,30 +1555,6 @@ messageSends: ["error:"]
 }),
 $globals.Object);
 
-$core.addMethod(
-$core.method({
-selector: "throw:",
-protocol: 'error handling',
-fn: function (anObject){
-var self=this;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-throw anObject;
-return self;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"throw:",{anObject:anObject},$globals.Object)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["anObject"],
-source: "throw: anObject\x0a\x09<inlineJS: 'throw anObject'>",
-referencedClasses: [],
-//>>excludeEnd("ide");
-messageSends: []
-}),
-$globals.Object);
-
 $core.addMethod(
 $core.method({
 selector: "value",

+ 0 - 4
src/Kernel-Objects.st

@@ -308,10 +308,6 @@ shouldNotImplement
 
 subclassResponsibility
 	self error: 'This method is a responsibility of a subclass'
-!
-
-throw: anObject
-	<inlineJS: 'throw anObject'>
 ! !
 
 !Object methodsFor: 'evaluating'!