Mercurial > octave
changeset 31479:ef7418c5df8a stable
eliminate unused function
* lex.h, lex.ll (base_lexer::warn_single_quote_string):
Delete unused function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 18 Nov 2022 23:50:41 -0500 |
parents | ef9c804676b9 |
children | 1bbcaa97b2dd |
files | libinterp/parse-tree/lex.h libinterp/parse-tree/lex.ll |
diffstat | 2 files changed, 0 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h Fri Nov 18 23:49:32 2022 -0500 +++ b/libinterp/parse-tree/lex.h Fri Nov 18 23:50:41 2022 -0500 @@ -681,8 +681,6 @@ void maybe_warn_separator_insert (char sep); - void warn_single_quote_string (void); - void warn_language_extension (const std::string& msg); void maybe_warn_language_extension_comment (char c);
--- a/libinterp/parse-tree/lex.ll Fri Nov 18 23:49:32 2022 -0500 +++ b/libinterp/parse-tree/lex.ll Fri Nov 18 23:50:41 2022 -0500 @@ -3618,21 +3618,6 @@ } void - base_lexer::warn_single_quote_string (void) - { - std::string nm = m_fcn_file_full_name; - - if (nm.empty ()) - warning_with_id ("Octave:single-quote-string", - "single quote delimited string near line %d", - m_filepos.line ()); - else - warning_with_id ("Octave:single-quote-string", - "single quote delimited string near line %d of file %s", - m_filepos.line (), nm.c_str ()); - } - - void base_lexer::warn_language_extension (const std::string& msg) { std::string nm = m_fcn_file_full_name;