This commit is contained in:
Vitaly Puzrin 2014-04-13 20:37:36 +04:00
parent aecf1fa6b1
commit e4593facbb

View file

@ -11,9 +11,9 @@ var gzheader = require('./zlib/gzheader');
// calculate tail size of utf8 char by current byte value
function utf8tail(code) {
/*function utf8tail(code) {
return code >= 252 ? 6 : code >= 248 ? 5 : code >= 240 ? 4 : code >= 224 ? 3 : code >= 192 ? 2 : 1;
}
}*/
/**
* class Inflate
@ -180,7 +180,7 @@ Inflate.prototype.push = function(data, mode) {
var strm = this.strm;
var chunkSize = this.options.chunkSize;
var status, _mode;
var next_out_utf8_index, tail, utf8str;
//var next_out_utf8_index, tail, utf8str;
if (this.ended) { return false; }
_mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);