removed some unused variables
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user