Mercurial > octave-nkf
diff libinterp/parse-tree/lex.ll @ 18071:d48ef9e24324
maint: Remove deprecated keyword static.
* lex.ll: Remove static_kw processing.
* octave.gperf: Remove static_kw form list of keywords.
* grammar.txi: Remove static from list of Octave keywords.
* var.txi: Remove documentation mentioning static as synonym for persistent.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 03 Dec 2013 16:35:04 -0800 |
parents | cf3f828f401c |
children | 74dd974f7112 e0775b4f41dd |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll Tue Dec 03 15:59:56 2013 -0800 +++ b/libinterp/parse-tree/lex.ll Tue Dec 03 16:35:04 2013 -0800 @@ -2224,20 +2224,6 @@ at_beginning_of_statement = true; break; - case static_kw: - if ((reading_fcn_file || reading_script_file - || reading_classdef_file) - && ! fcn_file_full_name.empty ()) - warning_with_id ("Octave:deprecated-keyword", - "the 'static' keyword is obsolete and will be removed from a future version of Octave; please use 'persistent' instead; near line %d of file '%s'", - input_line_number, - fcn_file_full_name.c_str ()); - else - warning_with_id ("Octave:deprecated-keyword", - "the 'static' keyword is obsolete and will be removed from a future version of Octave; please use 'persistent' instead; near line %d", - input_line_number); - // fall through ... - case persistent_kw: case global_kw: looking_at_decl_list = true;