Ver Fonte

remove unused DateComponent::removeChildren

Adam Shaw há 8 anos atrás
pai
commit
3bcacde5b8
1 ficheiros alterados com 0 adições e 10 exclusões
  1. 0 10
      src/component/DateComponent.js

+ 0 - 10
src/component/DateComponent.js

@@ -73,16 +73,6 @@ var DateComponent = FC.DateComponent = Component.extend({
 	},
 
 
-	removeChildren: function() { // all
-		var children = Object.values(this.childrenByUid); // because childrenByUid will mutate while iterating
-		var i;
-
-		for (i = 0; i < children.length; i++) {
-			this.removeChild(children[i]);
-		}
-	},
-
-
 	// TODO: only do if isInDom?
 	// TODO: make part of Component, along with children/batch-render system?
 	updateSize: function(totalHeight, isAuto, isResize) {