@samitouri / QOS-React-2 / commits / 20bcabb1ea

Remove some dead code (#6764)

Ben Alpert committed May 12, 2016 at 17:10 UTC 20bcabb1ea4cf492ade240bd6915b4bd44f04895
1 file changed -20
src/renderers/shared/stack/reconciler/ReactHostComponent.js
-20
@@ -13,7 +13,6 @@
13
14 var invariant = require('invariant');
15
16 -var autoGenerateWrapperClass = null;
16 var genericComponentClass = null;
17 // This registry keeps track of wrapper classes around host tags.
18 var tagToComponentClass = {};
@@ -37,24 +36,6 @@ var ReactHostComponentInjection = {
36 },
37 };
38
40 -/**
41 - * Get a composite component wrapper class for a specific tag.
42 - *
43 - * @param {ReactElement} element The tag for which to get the class.
44 - * @return {function} The React class constructor function.
45 - */
46 -function getComponentClassForElement(element) {
47 - if (typeof element.type === 'function') {
48 - return element.type;
49 - }
50 - var tag = element.type;
51 - var componentClass = tagToComponentClass[tag];
52 - if (componentClass == null) {
53 - tagToComponentClass[tag] = componentClass = autoGenerateWrapperClass(tag);
54 - }
55 - return componentClass;
56 -}
57 -
39 /**
40 * Get a host internal component class for a specific tag.
41 *
@@ -87,7 +68,6 @@ function isTextComponent(component) {
68 }
69
70 var ReactHostComponent = {
90 - getComponentClassForElement: getComponentClassForElement,
71 createInternalComponent: createInternalComponent,
72 createInstanceForText: createInstanceForText,
73 isTextComponent: isTextComponent,