From e7010348d8b2f703fcc057c2914bd45ca6238f98 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Fri, 9 Feb 2018 10:50:44 -0800 Subject: [PATCH] Removed ReactNativeFeatureFlags Reviewed By: flarnie Differential Revision: D6938455 fbshipit-source-id: 1ad08ebf01dcae76f50b26fb993425233da1ae16 --- .../ReactNative/ReactNativeFeatureFlags.js | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 Libraries/ReactNative/ReactNativeFeatureFlags.js diff --git a/Libraries/ReactNative/ReactNativeFeatureFlags.js b/Libraries/ReactNative/ReactNativeFeatureFlags.js deleted file mode 100644 index 26d3c26b0d08d8..00000000000000 --- a/Libraries/ReactNative/ReactNativeFeatureFlags.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright 2013-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 ReactNativeFeatureFlags - * @flow - * @format - */ - -'use strict'; - -// ============================================================================= -// IMPORTANT: -// When syncing React Renderer, make sure the feature flags are still compatible -// ============================================================================= - -var useFiber; - -var ReactNativeFeatureFlags = { - get useFiber(): boolean { - if (useFiber == null) { - useFiber = true; - if (__DEV__) { - require('Systrace').installReactHook(useFiber); - } - } - return useFiber; - }, - set useFiber(enabled: boolean): void { - if (useFiber != null) { - throw new Error( - 'Cannot set useFiber feature flag after it has been accessed. ' + - 'Please override it before requiring React.', - ); - } - useFiber = enabled; - if (__DEV__) { - require('Systrace').installReactHook(useFiber); - } - }, -}; - -module.exports = ReactNativeFeatureFlags;