mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
82f4a44086
commit
da3e23fa70
Vendored
-23
@@ -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;
|
||||
Vendored
-15
@@ -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;
|
||||
Reference in New Issue
Block a user