Remove _setPropsInternal
Nothing uses this.
Ben Alpert committed
Jun 15, 2015 at 16:18 UTC
ee367a8a02a56d9add9fe6e6ad6f1c46e011f643
1 file changed
-20
src/renderers/shared/reconciler/ReactCompositeComponent.js
-20
@@ -22,7 +22,6 @@ var ReactPerf = require('ReactPerf');
22
var ReactPropTypeLocations = require('ReactPropTypeLocations');
23
var ReactPropTypeLocationNames = require('ReactPropTypeLocationNames');
24
var ReactReconciler = require('ReactReconciler');
25
-var ReactUpdates = require('ReactUpdates');
25
26
var assign = require('Object.assign');
27
var emptyObject = require('emptyObject');
@@ -302,25 +301,6 @@ var ReactCompositeComponentMixin = {
301
// TODO: inst.context = null;
302
},
303
305
- /**
306
- * Schedule a partial update to the props. Only used for internal testing.
307
- *
308
- * @param {object} partialProps Subset of the next props.
309
- * @param {?function} callback Called after props are updated.
310
- * @final
311
- * @internal
312
- */
313
- _setPropsInternal: function(partialProps, callback) {
314
- // This is a deoptimized path. We optimize for always having an element.
315
- // This creates an extra internal element.
316
- var element = this._pendingElement || this._currentElement;
317
- this._pendingElement = ReactElement.cloneAndReplaceProps(
318
- element,
319
- assign({}, element.props, partialProps)
320
- );
321
- ReactUpdates.enqueueUpdate(this, callback);
322
- },
323
-
304
/**
305
* Filters the context object to only contain keys specified in
306
* `contextTypes`