From 53493aee4b2e3880a1fcaf194a2976d43fae8b58 Mon Sep 17 00:00:00 2001 From: Fernando Via Canel Date: Wed, 16 Nov 2016 16:35:23 +0100 Subject: [PATCH] Remove unnecessary files --- lib/uniqueComponentName.js | 5 ----- lib/uuid.js | 13 ------------- 2 files changed, 18 deletions(-) delete mode 100644 lib/uniqueComponentName.js delete mode 100644 lib/uuid.js diff --git a/lib/uniqueComponentName.js b/lib/uniqueComponentName.js deleted file mode 100644 index b92ace7c..00000000 --- a/lib/uniqueComponentName.js +++ /dev/null @@ -1,5 +0,0 @@ -import name from './name' -import uuid from './uuid' - -let counter = 0 -export default (Component) => `${name(Component)}-${uuid(counter++)}` diff --git a/lib/uuid.js b/lib/uuid.js deleted file mode 100644 index 8beddde8..00000000 --- a/lib/uuid.js +++ /dev/null @@ -1,13 +0,0 @@ -import seededRandom from 'seed-random' - -const TOKENS = /[xy]/g - -export default function uuid (seed) { - const random = seed === undefined ? Math.random : seededRandom(seed) - - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(TOKENS, (c) => { - const r = random() * 16 | 0 - const v = c === 'x' ? r : (r & 0x3 | 0x8) - return v.toString(16) - }) -}