From 4734bdee3a225391231dceb4aafe459855d94594 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 21 May 2016 18:56:55 -0700 Subject: [PATCH] Remove injectMixin Summary: The only callsite left was removed here: https://github.com/facebook/react/commit/e8af100849932387643977587ccd7a4c1a981470#commitcomment-17570210 but the code to handle it remained. Test Plan: tbgs and ibgs, make sure there's no callsites. Reviewers: @jimfb, @spicyj, @sebmarkbage --- src/isomorphic/classic/class/ReactClass.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/isomorphic/classic/class/ReactClass.js b/src/isomorphic/classic/class/ReactClass.js index 01bd6df5871b..611c89e83bce 100644 --- a/src/isomorphic/classic/class/ReactClass.js +++ b/src/isomorphic/classic/class/ReactClass.js @@ -51,8 +51,6 @@ var SpecPolicy = keyMirror({ }); -var injectedMixins = []; - /** * Composite components are higher-level components that compose other composite * or host components. @@ -796,10 +794,6 @@ var ReactClass = { Constructor.prototype.constructor = Constructor; Constructor.prototype.__reactAutoBindPairs = []; - injectedMixins.forEach( - mixSpecIntoComponent.bind(null, Constructor) - ); - mixSpecIntoComponent(Constructor, spec); // Initialize the defaultProps property after all mixins have been merged. @@ -852,12 +846,6 @@ var ReactClass = { return Constructor; }, - injection: { - injectMixin: function(mixin) { - injectedMixins.push(mixin); - }, - }, - }; module.exports = ReactClass;