From 41410f8f86272e4943e009bbc63066b8fe2d3fd0 Mon Sep 17 00:00:00 2001 From: Daplie Date: Thu, 2 Feb 2017 14:11:45 -0700 Subject: [PATCH] cleanup --- dns.type.txt.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/dns.type.txt.js b/dns.type.txt.js index 9732a6c..8ae3f7a 100644 --- a/dns.type.txt.js +++ b/dns.type.txt.js @@ -10,21 +10,6 @@ var unpackLabels = exports.DNS_UNPACK_LABELS || require('./dns.unpack-labels.js').DNS_UNPACK_LABELS; exports.DNS_TYPE_TXT = function (ab, pack, record) { - - - var rdataAb = ab.slice(record.rdstart, record.rdstart + record.rdlength); - var dv = new DataView(rdataAb); - var s = ''; - var data = ''; - for (var i = 0; i < dv.byteLength; i +=1){ - - s = dv.getUint8(i, false); - data = String.fromCharCode(s); - console.log("data at " + i + " is: " + data); - - } - - return unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name; }; }('undefined' !== typeof window ? window : exports));