removed some unused variables

This commit is contained in:
Mihai Bazon
2012-10-04 08:49:18 +03:00
parent f20c251882
commit 682a58a1f5
3 changed files with 9 additions and 14 deletions

View File

@@ -304,10 +304,6 @@ function tokenizer($TEXT, filename) {
return ch;
};
function eof() {
return !S.peek();
};
function find(what, signal_eof) {
var pos = S.text.indexOf(what, S.pos);
if (signal_eof && pos == -1) throw EX_EOF;
@@ -909,7 +905,7 @@ function parse($TEXT, options) {
}
expect(":");
S.labels.push(label);
var start = S.token, stat = statement();
var stat = statement();
S.labels.pop();
return new AST_LabeledStatement({ body: stat, label: label });
};
@@ -1036,7 +1032,7 @@ function parse($TEXT, options) {
var switch_body_ = curry(in_loop, function(){
expect("{");
var a = [], cur = null, branch = null, start = S.token;
var a = [], cur = null, branch = null;
while (!is("punc", "}")) {
if (is("eof")) unexpected();
if (is("keyword", "case")) {