From 6fe495a5ab7fcc98653581e752c02bd40dfc6d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Wed, 10 Feb 2016 11:20:50 -0800 Subject: [PATCH] Remove React.addons.batchedUpdates --- src/addons/ReactWithAddons.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/addons/ReactWithAddons.js b/src/addons/ReactWithAddons.js index d3cf053a25fee..755a1dc8c2a5c 100644 --- a/src/addons/ReactWithAddons.js +++ b/src/addons/ReactWithAddons.js @@ -25,13 +25,9 @@ var ReactComponentWithPureRenderMixin = var ReactCSSTransitionGroup = require('ReactCSSTransitionGroup'); var ReactFragment = require('ReactFragment'); var ReactTransitionGroup = require('ReactTransitionGroup'); -var ReactUpdates = require('ReactUpdates'); var shallowCompare = require('shallowCompare'); var update = require('update'); -var warning = require('warning'); - -var warnedAboutBatchedUpdates = false; React.addons = { CSSTransitionGroup: ReactCSSTransitionGroup, @@ -39,17 +35,6 @@ React.addons = { PureRenderMixin: ReactComponentWithPureRenderMixin, TransitionGroup: ReactTransitionGroup, - batchedUpdates: function() { - if (__DEV__) { - warning( - warnedAboutBatchedUpdates, - 'React.addons.batchedUpdates is deprecated. Use ' + - 'ReactDOM.unstable_batchedUpdates instead.' - ); - warnedAboutBatchedUpdates = true; - } - return ReactUpdates.batchedUpdates.apply(this, arguments); - }, createFragment: ReactFragment.create, shallowCompare: shallowCompare, update: update,