From 41312c53acb0fabc0fdf0d075c8d1e320107014d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 21 Nov 2018 19:08:08 -0700 Subject: [PATCH] cleanup --- lib/uasn1.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/uasn1.js b/lib/uasn1.js index 1916a16..6b929ca 100644 --- a/lib/uasn1.js +++ b/lib/uasn1.js @@ -23,13 +23,11 @@ ASN1.parse = function parseAsn1(buf, depth) { asn1.lengthSize = 0x7f & asn1.length; // I think that buf->hex->int solves the problem of Endianness... not sure asn1.length = parseInt(buf.slice(index, index + asn1.lengthSize).toString('hex'), 16); - //index += 1; // add back the original byte indicating lengthSize index += asn1.lengthSize; } // this is a primitive value type if (-1 !== VTYPES.indexOf(asn1.type)) { - //console.log('t', asn1.type); asn1.value = buf.slice(index, index + asn1.length); return asn1; } @@ -39,7 +37,6 @@ ASN1.parse = function parseAsn1(buf, depth) { iters += 1; child = ASN1.parse(buf.slice(index, index + asn1.length), (depth || 0) + 1); index += (2 + child.lengthSize + child.length); - //console.log('buflen', buf.byteLength, 'index', index); asn1.children.push(child); } if (iters >= 100) { throw new Error(ELOOP); }