diff --git a/src/renderers/shared/stack/reconciler/ReactHostComponent.js b/src/renderers/shared/stack/reconciler/ReactHostComponent.js index f7579d71dd..7a08f562d7 100644 --- a/src/renderers/shared/stack/reconciler/ReactHostComponent.js +++ b/src/renderers/shared/stack/reconciler/ReactHostComponent.js @@ -13,7 +13,6 @@ var invariant = require('invariant'); -var autoGenerateWrapperClass = null; var genericComponentClass = null; // This registry keeps track of wrapper classes around host tags. var tagToComponentClass = {}; @@ -37,24 +36,6 @@ var ReactHostComponentInjection = { }, }; -/** - * Get a composite component wrapper class for a specific tag. - * - * @param {ReactElement} element The tag for which to get the class. - * @return {function} The React class constructor function. - */ -function getComponentClassForElement(element) { - if (typeof element.type === 'function') { - return element.type; - } - var tag = element.type; - var componentClass = tagToComponentClass[tag]; - if (componentClass == null) { - tagToComponentClass[tag] = componentClass = autoGenerateWrapperClass(tag); - } - return componentClass; -} - /** * Get a host internal component class for a specific tag. * @@ -87,7 +68,6 @@ function isTextComponent(component) { } var ReactHostComponent = { - getComponentClassForElement: getComponentClassForElement, createInternalComponent: createInternalComponent, createInstanceForText: createInstanceForText, isTextComponent: isTextComponent,