# HG changeset patch # User Rik # Date 1402672888 25200 # Node ID 4ae67c0553ae83823b4749d322094acf2e18c55b # Parent 87c3848cf3c0a5a16c0613ce8ef876d6900c6d54 lex.ll: Remove unused function strip_trailing_whitespace. This stops unused_function warning during compilation. * lex.ll: Remove unused function strip_trailing_whitespace. diff -r 87c3848cf3c0 -r 4ae67c0553ae libinterp/parse-tree/lex.ll --- a/libinterp/parse-tree/lex.ll Tue Jun 10 14:03:09 2014 -0700 +++ b/libinterp/parse-tree/lex.ll Fri Jun 13 08:21:28 2014 -0700 @@ -300,11 +300,6 @@ // Internal variable for lexer debugging state. static bool lexer_debug_flag = false; -// Forward declarations for functions defined at the bottom of this -// file that are needed inside the lexer actions. - -static std::string strip_trailing_whitespace (char *s); - %} D [0-9] @@ -1922,21 +1917,6 @@ */ -// Used to delete trailing white space from tokens. - -static std::string -strip_trailing_whitespace (char *s) -{ - std::string retval = s; - - size_t pos = retval.find_first_of (" \t"); - - if (pos != std::string::npos) - retval.resize (pos); - - return retval; -} - DEFUN (__display_tokens__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} __display_tokens__ ()\n\