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));