From da3e23fa70014f2611f57ff4a11629a963f9480d Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Sat, 12 Oct 2019 15:47:17 -0700 Subject: [PATCH] RN: Delete `guid` Summary: Deletes `guid` because there are no more references to it in `react-native`. Changelog: [Internal] Reviewed By: zackargyle Differential Revision: D17882369 fbshipit-source-id: c3ee6d23e5fa233a7f5d2e2c7baef005384ea5b1 --- Libraries/vendor/core/guid.js | 23 ----------------------- Libraries/vendor/core/guid.js.flow | 15 --------------- 2 files changed, 38 deletions(-) delete mode 100644 Libraries/vendor/core/guid.js delete mode 100644 Libraries/vendor/core/guid.js.flow diff --git a/Libraries/vendor/core/guid.js b/Libraries/vendor/core/guid.js deleted file mode 100644 index 467a63236d0..00000000000 --- a/Libraries/vendor/core/guid.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -/* eslint-disable no-bitwise */ - -'use strict'; - -/** - * Module that provides a function for creating a unique identifier. - * The returned value does not conform to the GUID standard, but should - * be globally unique in the context of the browser. - */ -function guid() { - return 'f' + (Math.random() * (1 << 30)).toString(16).replace('.', ''); -} - -module.exports = guid; diff --git a/Libraries/vendor/core/guid.js.flow b/Libraries/vendor/core/guid.js.flow deleted file mode 100644 index 3f404018469..00000000000 --- a/Libraries/vendor/core/guid.js.flow +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict - * @format - */ - -'use strict'; - -declare function guid(): string; - -module.exports = guid;