Mercurial > hg > octave-nkf
changeset 16283:9a85870f2bc1
delete unused class and unused functions
* lex.h, lex.ll (flex_stream_reader): Delete unused class.
(octave_lexer::next_token_can_follow_bin_op): Delete.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 11 Mar 2013 17:17:48 -0400 |
parents | 1bbc2fc552cf |
children | 09881dab3aaf |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 0 insertions(+), 53 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -1429,30 +1429,6 @@ return retval; } -class -flex_stream_reader : public stream_reader -{ -public: - flex_stream_reader (octave_lexer *l, char *buf_arg) - : stream_reader (), lexer (l), buf (buf_arg) - { } - - int getc (void) { return lexer->text_yyinput (); } - int ungetc (int c) { lexer->xunput (c, buf); return 0; } - -private: - - // No copying! - - flex_stream_reader (const flex_stream_reader&); - - flex_stream_reader& operator = (const flex_stream_reader&); - - octave_lexer *lexer; - - char *buf; -}; - lexical_feedback::~lexical_feedback (void) { tokens.clear (); @@ -2440,35 +2416,6 @@ } bool -octave_lexer::next_token_can_follow_bin_op (void) -{ - std::stack<char> buf; - - int c = EOF; - - // Skip whitespace in current statement on current line - while (true) - { - c = text_yyinput (); - - buf.push (c); - - if (match_any (c, ",;\n") || (c != ' ' && c != '\t')) - break; - } - - // Restore input. - while (! buf.empty ()) - { - xunput (buf.top ()); - - buf.pop (); - } - - return (isalnum (c) || match_any (c, "!\"'(-[_{~")); -} - -bool octave_lexer::looks_like_command_arg (void) { bool space_before = space_follows_previous_token ();