chore(frontends/lean/scanner): remove dead code

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-01-07 14:37:28 -08:00
parent 29db6accb8
commit c7338a8eab
2 changed files with 0 additions and 29 deletions

View file

@ -138,34 +138,6 @@ bool scanner::check_next_is_digit() {
return r;
}
void scanner::read_comment() {
int nest = 1;
while (true) {
if (curr() == '*') {
next();
if (curr() == ')') {
next();
nest--;
if (nest == 0)
return;
}
} else if (curr() == '(') {
next();
if (curr() == '*') {
next();
nest++;
}
} else if (curr() == '\n') {
new_line();
next();
} else if (curr() == EOF) {
throw_exception("unexpected end of comment");
} else {
next();
}
}
}
void scanner::read_single_line_comment() {
while (true) {
if (curr() == '\n') {

View file

@ -46,7 +46,6 @@ protected:
void next();
bool check_next(char c);
bool check_next_is_digit();
void read_comment();
void read_single_line_comment();
name mk_name(name const & curr, std::string const & buf, bool only_digits);
token read_a_symbol();