code cleanup

This commit is contained in:
Vitaly Puzrin 2014-02-17 10:23:13 +04:00
parent f643adbbcf
commit 90e1a6ff31
3 changed files with 10 additions and 37 deletions

View file

@ -7,5 +7,5 @@ var data = new Uint8Array(fs.readFileSync(__dirname +'/samples/lorem_1mb.txt'));
for (var i=0; i<50; i++) {
pako.deflate(data, { level: 0 });
pako.deflate(data, { level: 1 });
}

View file

@ -1,8 +1,6 @@
'use strict';
// TODO: investigate why --trace_deopt shows something
// (though speed doesn't seems to reduce)
//
function adler32(adler, buf, len, pos) {
var s1 = adler & 0xffff
, s2 = (adler >>> 16) & 0xffff

View file

@ -1308,25 +1308,6 @@ function deflateInit(strm, level) {
return deflateInit2(strm, level, c.Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, c.Z_DEFAULT_STRATEGY);
}
function deflateSetDictionary(/*strm, dictionary, dictLength*/) {
}
function deflateParams(/*strm, level, strategy*/) {
}
function deflateSetHeader(/*strm, head*/) {
}
function deflateBound(/*strm, sourceLen*/) {
}
function deflatePending(/*strm, pending, bits*/) {
}
function deflate(strm, flush) {
var s = strm.state;
@ -1539,21 +1520,15 @@ function deflateEnd(strm) {
//}
exports.deflateInit = deflateInit;
exports.deflateInit2 = deflateInit2;
exports.deflateSetDictionary = deflateSetDictionary;
exports.deflateReset = deflateReset;
exports.deflateParams = deflateParams;
exports.deflateSetHeader = deflateSetHeader;
exports.deflateBound = deflateBound;
exports.deflatePending = deflatePending;
exports.deflate = deflate;
exports.deflateEnd = deflateEnd;
exports.deflateEnd = deflateEnd;
/* Not implemented
exports.deflateSetDictionary = deflateSetDictionary;
exports.deflateParams = deflateParams;
exports.deflateSetHeader = deflateSetHeader;
exports.deflateBound = deflateBound;
exports.deflatePending = deflatePending;
*/