From 745fccebfb9e8ac264ad5084944166b493576a91 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 22 Jul 2015 16:19:46 +0200 Subject: [PATCH] Add var statements to undeclared variables and remove unused variables --- benches/stress/codec.js | 10 ---------- diff_multi_bench_output.js | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/benches/stress/codec.js b/benches/stress/codec.js index c679a6e..5a3cc6d 100644 --- a/benches/stress/codec.js +++ b/benches/stress/codec.js @@ -5,14 +5,4 @@ var json = { decode: JSON.parse }; -var MsgPack = require('node-msgpack'); -msgpack = { - encode: MsgPack.pack, - decode: function(str) { return MsgPack.unpack(new Buffer(str)); } -}; - -bison = require('bison'); - module.exports = json; -//module.exports = msgpack; -//module.exports = bison; diff --git a/diff_multi_bench_output.js b/diff_multi_bench_output.js index 0aff103..8eab0a2 100755 --- a/diff_multi_bench_output.js +++ b/diff_multi_bench_output.js @@ -37,8 +37,8 @@ before_lines.forEach(function(b, i) { return; } - b_words = b.split(' ').filter(is_whitespace); - a_words = a.split(' ').filter(is_whitespace); + var b_words = b.split(' ').filter(is_whitespace); + var a_words = a.split(' ').filter(is_whitespace); var ops = [b_words, a_words]