From 06a83448df411b1a99a813c505ce6377aac61e3c Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 14 Dec 2013 12:05:25 +0100 Subject: [PATCH] Remove various unused variables and function parameters --- lib/compiler/passes/generate-bytecode.js | 6 +++--- lib/compiler/passes/generate-javascript.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/compiler/passes/generate-bytecode.js b/lib/compiler/passes/generate-bytecode.js index 8b04f80..f2093a1 100644 --- a/lib/compiler/passes/generate-bytecode.js +++ b/lib/compiler/passes/generate-bytecode.js @@ -169,7 +169,7 @@ var utils = require("../../utils"), * * silentFails--; */ -module.exports = function(ast, options) { +module.exports = function(ast) { var consts = []; function addConst(value) { @@ -351,7 +351,7 @@ module.exports = function(ast, options) { }, sequence: function(node, context) { - var emptyArrayIndex, failIndex; + var emptyArrayIndex; function buildElementsCode(elements, context) { var processedCount, functionIndex; @@ -591,7 +591,7 @@ module.exports = function(ast, options) { ); }, - any: function(node) { + any: function() { var expectedIndex = addConst('{ type: "any", description: "any character" }'); return buildCondition( diff --git a/lib/compiler/passes/generate-javascript.js b/lib/compiler/passes/generate-javascript.js index 828cb3c..d533b56 100644 --- a/lib/compiler/passes/generate-javascript.js +++ b/lib/compiler/passes/generate-javascript.js @@ -428,7 +428,7 @@ module.exports = function(ast, options) { parts.push('}'); } - function compileCall(cond) { + function compileCall() { var baseLength = 4, paramsLength = bc[ip + baseLength - 1];