From e612826650ff68e73bff4d71db01fea8147ee1fd Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 10 Nov 2016 16:03:22 +0000 Subject: [PATCH] Revert "temporary compatibility fix" (#8256) This reverts commit bba0d992d8f4ecf9cf6677817a1218e7f48a8a77. --- src/isomorphic/hooks/ReactComponentTreeDevtool.js | 14 -------------- src/renderers/shared/ReactDebugTool.js | 4 ---- 2 files changed, 18 deletions(-) delete mode 100644 src/isomorphic/hooks/ReactComponentTreeDevtool.js diff --git a/src/isomorphic/hooks/ReactComponentTreeDevtool.js b/src/isomorphic/hooks/ReactComponentTreeDevtool.js deleted file mode 100644 index 8e9898e3c1e51..0000000000000 --- a/src/isomorphic/hooks/ReactComponentTreeDevtool.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright 2016-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 ReactComponentTreeDevtool - */ -'use strict'; - -// TODO remove this proxy when RN/www gets updated -module.exports = require('ReactComponentTreeHook'); diff --git a/src/renderers/shared/ReactDebugTool.js b/src/renderers/shared/ReactDebugTool.js index f7edbfbc74564..783baf228d7eb 100644 --- a/src/renderers/shared/ReactDebugTool.js +++ b/src/renderers/shared/ReactDebugTool.js @@ -409,10 +409,6 @@ var ReactDebugTool = { }, }; -// TODO remove these when RN/www gets updated -(ReactDebugTool: any).addDevtool = ReactDebugTool.addHook; -(ReactDebugTool: any).removeDevtool = ReactDebugTool.removeHook; - ReactDebugTool.addHook(ReactInvalidSetStateWarningHook); ReactDebugTool.addHook(ReactComponentTreeHook); var url = (ExecutionEnvironment.canUseDOM && window.location.href) || '';