From: Ben Pfaff Date: Tue, 21 Dec 2010 07:58:59 +0000 (-0800) Subject: lexer: Remove unused function lex_put_back_id(). X-Git-Tag: v0.7.7~99 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e0129f54424a6fd5fb1bc7651e48dedc5293c2;p=pspp-builds.git lexer: Remove unused function lex_put_back_id(). --- diff --git a/src/language/lexer/lexer.c b/src/language/lexer/lexer.c index 00724e64..616b7008 100644 --- a/src/language/lexer/lexer.c +++ b/src/language/lexer/lexer.c @@ -781,17 +781,6 @@ lex_put_back (struct lexer *lexer, enum token_type t) save_token (lexer); lexer->token = t; } - -/* Makes the current token become the next token to be read; the - current token is set to the identifier ID. */ -void -lex_put_back_id (struct lexer *lexer, const char *id) -{ - assert (lex_id_to_token (ss_cstr (id)) == T_ID); - save_token (lexer); - lexer->token = T_ID; - ds_assign_cstr (&lexer->tokstr, id); -} /* Weird line processing functions. */ diff --git a/src/language/lexer/lexer.h b/src/language/lexer/lexer.h index 7af40234..1abefb6b 100644 --- a/src/language/lexer/lexer.h +++ b/src/language/lexer/lexer.h @@ -69,7 +69,6 @@ bool lex_force_string (struct lexer *); /* Weird token functions. */ enum token_type lex_look_ahead (struct lexer *); void lex_put_back (struct lexer *, enum token_type); -void lex_put_back_id (struct lexer *, const char *tokid); /* Weird line processing functions. */ const char *lex_entire_line (const struct lexer *);