From ee367a8a02a56d9add9fe6e6ad6f1c46e011f643 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 15 Jun 2015 16:18:56 -0700 Subject: [PATCH] Remove _setPropsInternal Nothing uses this. --- .../reconciler/ReactCompositeComponent.js | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/renderers/shared/reconciler/ReactCompositeComponent.js b/src/renderers/shared/reconciler/ReactCompositeComponent.js index bd3f4d0dc9..c95a58593d 100644 --- a/src/renderers/shared/reconciler/ReactCompositeComponent.js +++ b/src/renderers/shared/reconciler/ReactCompositeComponent.js @@ -22,7 +22,6 @@ var ReactPerf = require('ReactPerf'); var ReactPropTypeLocations = require('ReactPropTypeLocations'); var ReactPropTypeLocationNames = require('ReactPropTypeLocationNames'); var ReactReconciler = require('ReactReconciler'); -var ReactUpdates = require('ReactUpdates'); var assign = require('Object.assign'); var emptyObject = require('emptyObject'); @@ -302,25 +301,6 @@ var ReactCompositeComponentMixin = { // TODO: inst.context = null; }, - /** - * Schedule a partial update to the props. Only used for internal testing. - * - * @param {object} partialProps Subset of the next props. - * @param {?function} callback Called after props are updated. - * @final - * @internal - */ - _setPropsInternal: function(partialProps, callback) { - // This is a deoptimized path. We optimize for always having an element. - // This creates an extra internal element. - var element = this._pendingElement || this._currentElement; - this._pendingElement = ReactElement.cloneAndReplaceProps( - element, - assign({}, element.props, partialProps) - ); - ReactUpdates.enqueueUpdate(this, callback); - }, - /** * Filters the context object to only contain keys specified in * `contextTypes`