remove console debug

This commit is contained in:
BuckarooBanzay 2020-07-02 14:18:10 +02:00
parent 1e16c542af
commit 7bffcda44d

View File

@ -40,16 +40,11 @@ module.exports.parse = data => new Promise(function(resolve, reject) {
let inflate = zlib.createInflate(); let inflate = zlib.createInflate();
inflate.on("data", function(mapdata){ inflate.on("data", function(mapdata){
console.log("mapdata", mapdata);
console.log(inflate.bytesWritten);
offset += inflate.bytesWritten; offset += inflate.bytesWritten;
const metadata_buffer = buffer.subarray(offset); const metadata_buffer = buffer.subarray(offset);
inflate = zlib.createInflate(); inflate = zlib.createInflate();
inflate.on("data", function(metadata){ inflate.on("data", function(metadata){
console.log("metadata", metadata);
console.log(inflate.bytesWritten);
offset += inflate.bytesWritten; offset += inflate.bytesWritten;
//static objects version //static objects version
@ -62,7 +57,6 @@ module.exports.parse = data => new Promise(function(resolve, reject) {
for (let i=0; i < static_objects_count; i++) { for (let i=0; i < static_objects_count; i++) {
offset += 13; offset += 13;
const dataSize = buffer.readUInt16BE(offset); const dataSize = buffer.readUInt16BE(offset);
console.log("dataSize", dataSize);
offset += dataSize + 2; offset += dataSize + 2;
} }
@ -73,8 +67,6 @@ module.exports.parse = data => new Promise(function(resolve, reject) {
offset++; offset++;
const numMappings = buffer.readUInt16BE(offset); const numMappings = buffer.readUInt16BE(offset);
console.log("numMappings", numMappings);
const node_names = []; const node_names = [];
offset += 2; offset += 2;
@ -88,7 +80,6 @@ module.exports.parse = data => new Promise(function(resolve, reject) {
const blockName = buffer.subarray(offset, offset+nameLen).toString(); const blockName = buffer.subarray(offset, offset+nameLen).toString();
offset += nameLen; offset += nameLen;
console.log("blockName", blockName);
node_names.push(blockName); node_names.push(blockName);
} }