@samitouri / QOS-React / commits / 5a21d49e3b

Remove injectMixin (#6831)

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

Christopher Chedeau committed Jun 19, 2016 at 21:57 UTC 5a21d49e3bc6f7df38262af923ccf9f8b0b4741f
1 file changed -12
src/isomorphic/classic/class/ReactClass.js
-12
@@ -51,8 +51,6 @@ var SpecPolicy = keyMirror({
51 });
52
53
54 -var injectedMixins = [];
55 -
54 /**
55 * Composite components are higher-level components that compose other composite
56 * or host components.
@@ -796,10 +794,6 @@ var ReactClass = {
794 Constructor.prototype.constructor = Constructor;
795 Constructor.prototype.__reactAutoBindPairs = [];
796
799 - injectedMixins.forEach(
800 - mixSpecIntoComponent.bind(null, Constructor)
801 - );
802 -
797 mixSpecIntoComponent(Constructor, spec);
798
799 // Initialize the defaultProps property after all mixins have been merged.
@@ -852,12 +846,6 @@ var ReactClass = {
846 return Constructor;
847 },
848
855 - injection: {
856 - injectMixin: function(mixin) {
857 - injectedMixins.push(mixin);
858 - },
859 - },
860 -
849 };
850
851 module.exports = ReactClass;