aboutsummaryrefslogtreecommitdiff
path: root/cordova/node_modules/uuid/lib/bytesToUuid.js
diff options
context:
space:
mode:
Diffstat (limited to 'cordova/node_modules/uuid/lib/bytesToUuid.js')
-rwxr-xr-xcordova/node_modules/uuid/lib/bytesToUuid.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/cordova/node_modules/uuid/lib/bytesToUuid.js b/cordova/node_modules/uuid/lib/bytesToUuid.js
deleted file mode 100755
index 9ee989c..0000000
--- a/cordova/node_modules/uuid/lib/bytesToUuid.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Convert array of 16 byte values to UUID string format of the form:
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
- */
-var byteToHex = [];
-for (var i = 0; i < 256; ++i) {
- byteToHex[i] = (i + 0x100).toString(16).substr(1);
-}
-
-function bytesToUuid(buf, offset) {
- var i = offset || 0;
- var bth = byteToHex;
- return bth[buf[i++]] + bth[buf[i++]] +
- bth[buf[i++]] + bth[buf[i++]] + '-' +
- bth[buf[i++]] + bth[buf[i++]] + '-' +
- bth[buf[i++]] + bth[buf[i++]] + '-' +
- bth[buf[i++]] + bth[buf[i++]] + '-' +
- bth[buf[i++]] + bth[buf[i++]] +
- bth[buf[i++]] + bth[buf[i++]] +
- bth[buf[i++]] + bth[buf[i++]];
-}
-
-module.exports = bytesToUuid;