Mercurial > octave
comparison libinterp/parse-tree/lex.ll @ 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 | cfa938be2999 e88a07dec498 |
comparison
equal
deleted
inserted
replaced
31478:ef9c804676b9 | 31479:ef7418c5df8a |
---|---|
3616 "potential auto-insertion of '%c' near line %d of file %s", | 3616 "potential auto-insertion of '%c' near line %d of file %s", |
3617 sep, m_filepos.line (), nm.c_str ()); | 3617 sep, m_filepos.line (), nm.c_str ()); |
3618 } | 3618 } |
3619 | 3619 |
3620 void | 3620 void |
3621 base_lexer::warn_single_quote_string (void) | |
3622 { | |
3623 std::string nm = m_fcn_file_full_name; | |
3624 | |
3625 if (nm.empty ()) | |
3626 warning_with_id ("Octave:single-quote-string", | |
3627 "single quote delimited string near line %d", | |
3628 m_filepos.line ()); | |
3629 else | |
3630 warning_with_id ("Octave:single-quote-string", | |
3631 "single quote delimited string near line %d of file %s", | |
3632 m_filepos.line (), nm.c_str ()); | |
3633 } | |
3634 | |
3635 void | |
3636 base_lexer::warn_language_extension (const std::string& msg) | 3621 base_lexer::warn_language_extension (const std::string& msg) |
3637 { | 3622 { |
3638 std::string nm = m_fcn_file_full_name; | 3623 std::string nm = m_fcn_file_full_name; |
3639 | 3624 |
3640 if (nm.empty ()) | 3625 if (nm.empty ()) |