changeset 18863:4ae67c0553ae

lex.ll: Remove unused function strip_trailing_whitespace. This stops unused_function warning during compilation. * lex.ll: Remove unused function strip_trailing_whitespace.
author Rik <rik@octave.org>
date Fri, 13 Jun 2014 08:21:28 -0700
parents 87c3848cf3c0
children 5b7b18d603ae
files libinterp/parse-tree/lex.ll
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- 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\