summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-01-19 17:01:08 -0600
committerkpdecker <kpdecker@gmail.com>2013-01-19 17:01:08 -0600
commitd486e7fa47b4fcb050d3f988552d7d3a2feaf516 (patch)
tree375a4f921dd8d2b0322c5382570b8727eff4c14e /lib/handlebars/compiler/compiler.js
parent228c75669fe25a13d7ad8779a86765a400c959f9 (diff)
downloadhandlebars.js-d486e7fa47b4fcb050d3f988552d7d3a2feaf516.zip
handlebars.js-d486e7fa47b4fcb050d3f988552d7d3a2feaf516.tar.gz
handlebars.js-d486e7fa47b4fcb050d3f988552d7d3a2feaf516.tar.bz2
Remove unused vars
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 9cdf250..9bcc065 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -212,7 +212,7 @@ Handlebars.JavaScriptCompiler = function() {};
this.opcode('invokeAmbiguous', name);
},
- simpleMustache: function(mustache, program, inverse) {
+ simpleMustache: function(mustache) {
var id = mustache.id;
if (id.type === 'DATA') {
@@ -374,7 +374,7 @@ Handlebars.JavaScriptCompiler = function() {};
JavaScriptCompiler.prototype = {
// PUBLIC API: You can override these methods in a subclass to provide
// alternative compiled forms for name lookup and buffering semantics
- nameLookup: function(parent, name, type) {
+ nameLookup: function(parent, name /* , type*/) {
if (/^[0-9]+$/.test(name)) {
return parent + "[" + name + "]";
} else if (JavaScriptCompiler.isValidJavaScriptVariableName(name)) {
@@ -440,7 +440,7 @@ Handlebars.JavaScriptCompiler = function() {};
},
nextOpcode: function() {
- var opcodes = this.environment.opcodes, opcode = opcodes[this.i + 1];
+ var opcodes = this.environment.opcodes;
return opcodes[this.i + 1];
},
@@ -482,7 +482,6 @@ Handlebars.JavaScriptCompiler = function() {};
// Generate minimizer alias mappings
if (!this.isChild) {
- var aliases = [];
for (var alias in this.context.aliases) {
this.source[1] = this.source[1] + ', ' + alias + '=' + this.context.aliases[alias];
}