Remove unnecessary function

This commit is contained in:
kpdecker
2013-06-02 23:36:34 -05:00
parent 7def10195b
commit 6174c3b6f8
+3 -6
View File
@@ -38,13 +38,10 @@ Handlebars.AST.PartialNode = function(partialName, context) {
};
Handlebars.AST.BlockNode = function(mustache, program, inverse, close) {
var verifyMatch = function(open, close) {
if(open.original !== close.original) {
throw new Handlebars.Exception(open.original + " doesn't match " + close.original);
}
};
if(mustache.id.original !== close.original) {
throw new Handlebars.Exception(mustache.id.original + " doesn't match " + close.original);
}
verifyMatch(mustache.id, close);
this.type = "block";
this.mustache = mustache;
this.program = program;