Kaynağa Gözat

some cleanup in boot.js

Nicolas Petton 11 yıl önce
ebeveyn
işleme
e79096e06d
1 değiştirilmiş dosya ile 0 ekleme ve 9 silme
  1. 0 9
      js/boot.js

+ 0 - 9
js/boot.js

@@ -531,13 +531,11 @@ 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
 	};
@@ -818,13 +816,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();