Remove dead code in src/shared.js u8toArray()

This commit is contained in:
David Humphrey 2018-11-28 22:19:06 -05:00
parent d1cf1286cb
commit 89cfef0f07
1 changed files with 0 additions and 14 deletions

View File

@ -9,18 +9,6 @@ function guid() {
function nop() {} 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) { function validateInteger(value, name) {
let err; let err;
@ -35,10 +23,8 @@ function validateInteger(value, name) {
return value; return value;
} }
module.exports = { module.exports = {
guid: guid, guid: guid,
u8toArray: u8toArray,
nop: nop, nop: nop,
validateInteger: validateInteger, validateInteger: validateInteger,
}; };