deps bump + remove unused vars

This commit is contained in:
Vitaly Puzrin 2016-12-15 02:40:17 +03:00
parent bd0879c1cd
commit 3550aa653b
4 changed files with 8 additions and 11 deletions

View file

@ -1,6 +1,6 @@
language: node_js language: node_js
node_js: node_js:
- "0.10" - "6"
script: make $COMMAND script: make $COMMAND
env: env:
matrix: matrix:

View file

@ -227,10 +227,8 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta
return 1; return 1;
} }
var i = 0;
/* process all codes and make table entries */ /* process all codes and make table entries */
for (;;) { for (;;) {
i++;
/* create table entry */ /* create table entry */
here_bits = len - drop; here_bits = len - drop;
if (work[sym] < end) { if (work[sym] < end) {

View file

@ -21,20 +21,20 @@
"license": "MIT", "license": "MIT",
"repository": "nodeca/pako", "repository": "nodeca/pako",
"devDependencies": { "devDependencies": {
"mocha": "1.21.5", "mocha": "^3.2.0",
"benchmark": "*", "benchmark": "*",
"ansi": "*", "ansi": "*",
"browserify": "*", "browserify": "*",
"eslint": "^2.1.0", "eslint": "^3.12.2",
"eslint-plugin-nodeca": "~1.0.3", "eslint-plugin-nodeca": "~1.0.3",
"uglify-js": "*", "uglify-js": "*",
"istanbul": "*", "istanbul": "*",
"ndoc": "*", "ndoc": "*",
"lodash": "*", "lodash": "*",
"async": "*", "async": "*",
"grunt": "~0.4.4", "grunt": "^1.0.1",
"grunt-cli": "~0.1.13", "grunt-cli": "^1.2.0",
"grunt-saucelabs": "~8.6.0", "grunt-saucelabs": "^9.0.0",
"grunt-contrib-connect": "~0.9.0" "grunt-contrib-connect": "^1.0.2"
} }
} }

View file

@ -60,7 +60,7 @@ function testSingle(zlib_factory, pako_deflate, data, options, callback) {
if (zlib_options.windowBits < 0) { zlib_options.windowBits = -zlib_options.windowBits; } if (zlib_options.windowBits < 0) { zlib_options.windowBits = -zlib_options.windowBits; }
var zlibStream = zlib_factory(zlib_options); var zlibStream = zlib_factory(zlib_options);
var buffers = [], nread = 0; var buffers = [];
zlibStream.on('error', function (err) { zlibStream.on('error', function (err) {
@ -71,7 +71,6 @@ function testSingle(zlib_factory, pako_deflate, data, options, callback) {
zlibStream.on('data', function (chunk) { zlibStream.on('data', function (chunk) {
buffers.push(chunk); buffers.push(chunk);
nread += chunk.length;
}); });
zlibStream.on('end', function () { zlibStream.on('end', function () {