Browse Source

some boot.js cleanup

Nicolas Petton 11 years ago
parent
commit
dce08a35b6
1 changed files with 0 additions and 12 deletions
  1. 0 12
      js/boot.js

+ 0 - 12
js/boot.js

@@ -529,15 +529,10 @@ function Smalltalk() {
 	}
 
 	st.removeMethod = function(method) {
-		var protocol = method.category;
 		var klass = method.methodClass;
 
 		delete klass.fn.prototype[st.selector(method.selector)];
 		delete klass.methods[method.selector];
-
-		var selectors = Object.keys(klass.methods);
-		// Do *not* delete protocols from here.
-		// This is handled by #removeCompiledMethod
 	};
 
 	/* Handles unhandled errors during message sends */
@@ -817,13 +812,6 @@ SmalltalkMethodContext.prototype.method = function() {
 	return method;
 };
 
-// TODO: this is just wrong :)
-SmalltalkMethodContext.prototype.resume = function() {
-	//Brutally set the receiver as thisContext, then re-enter the function
-	smalltalk.thisContext = this;
-	return this.method.apply(receiver, temps);
-};
-
 /* Global Smalltalk objects. */
 
 var nil = new SmalltalkNil();