From 661321fda79bba48cf6e5d6e8ccce34e5d7b67c9 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Thu, 14 May 2015 08:13:37 -0700 Subject: [PATCH] [ReactNative] Remove ReactNativeComponentMixin --- .../ReactNative/ReactNativeBaseComponent.js | 4 +-- .../ReactNativeBaseComponentMixin.js | 32 ------------------- .../ReactNativeDefaultInjection.js | 3 -- 3 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 Libraries/ReactNative/ReactNativeBaseComponentMixin.js diff --git a/Libraries/ReactNative/ReactNativeBaseComponent.js b/Libraries/ReactNative/ReactNativeBaseComponent.js index 1db02652e..dcc31a2b3 100644 --- a/Libraries/ReactNative/ReactNativeBaseComponent.js +++ b/Libraries/ReactNative/ReactNativeBaseComponent.js @@ -12,7 +12,6 @@ 'use strict'; var NativeMethodsMixin = require('NativeMethodsMixin'); -var ReactNativeComponentMixin = require('ReactNativeComponentMixin'); var ReactNativeEventEmitter = require('ReactNativeEventEmitter'); var ReactNativeStyleAttributes = require('ReactNativeStyleAttributes'); var ReactNativeTagHandles = require('ReactNativeTagHandles'); @@ -275,8 +274,7 @@ Object.assign( ReactNativeBaseComponent.prototype, ReactMultiChild.Mixin, ReactNativeBaseComponent.Mixin, - NativeMethodsMixin, - ReactNativeComponentMixin + NativeMethodsMixin ); module.exports = ReactNativeBaseComponent; diff --git a/Libraries/ReactNative/ReactNativeBaseComponentMixin.js b/Libraries/ReactNative/ReactNativeBaseComponentMixin.js deleted file mode 100644 index 7cbf97077..000000000 --- a/Libraries/ReactNative/ReactNativeBaseComponentMixin.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule ReactNativeComponentMixin - * @flow - */ -'use strict'; - -var findNodeHandle = require('findNodeHandle'); - -var ReactNativeComponentMixin = { - /** - * This method is deprecated; use `React.findNodeHandle` instead. - */ - getNativeNode: function() { - return findNodeHandle(this); - }, - - /** - * This method is deprecated; use `React.findNodeHandle` instead. - */ - getNodeHandle: function() { - return findNodeHandle(this); - } -}; - -module.exports = ReactNativeComponentMixin; diff --git a/Libraries/ReactNative/ReactNativeDefaultInjection.js b/Libraries/ReactNative/ReactNativeDefaultInjection.js index 93c261280..3b15a8cc9 100644 --- a/Libraries/ReactNative/ReactNativeDefaultInjection.js +++ b/Libraries/ReactNative/ReactNativeDefaultInjection.js @@ -27,7 +27,6 @@ var ReactDefaultBatchingStrategy = require('ReactDefaultBatchingStrategy'); var ReactEmptyComponent = require('ReactEmptyComponent'); var ReactInstanceHandles = require('ReactInstanceHandles'); var ReactNativeComponentEnvironment = require('ReactNativeComponentEnvironment'); -var ReactNativeComponentMixin = require('ReactNativeComponentMixin'); var ReactNativeGlobalInteractionHandler = require('ReactNativeGlobalInteractionHandler'); var ReactNativeGlobalResponderHandler = require('ReactNativeGlobalResponderHandler'); var ReactNativeMount = require('ReactNativeMount'); @@ -90,8 +89,6 @@ function inject() { EventPluginUtils.injection.injectMount(ReactNativeMount); - ReactClass.injection.injectMixin(ReactNativeComponentMixin); - ReactNativeComponent.injection.injectTextComponentClass( ReactNativeTextComponent );