From 89cfef0f0792a17abac601dbceffa8dbfe1f77d9 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Wed, 28 Nov 2018 22:19:06 -0500 Subject: [PATCH] Remove dead code in src/shared.js u8toArray() --- src/shared.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/shared.js b/src/shared.js index f6827cc..4da76cc 100644 --- a/src/shared.js +++ b/src/shared.js @@ -9,18 +9,6 @@ function guid() { function nop() {} -/** - * Convert a Uint8Array to a regular array - */ -function u8toArray(u8) { - var array = []; - var len = u8.length; - for(var i = 0; i < len; i++) { - array[i] = u8[i]; - } - return array; -} - function validateInteger(value, name) { let err; @@ -35,10 +23,8 @@ function validateInteger(value, name) { return value; } - module.exports = { guid: guid, - u8toArray: u8toArray, nop: nop, validateInteger: validateInteger, };