From: David Kastrup Date: Wed, 23 Nov 2011 23:55:51 +0000 (+0100) Subject: lily-parser.cc: remove dead array define_spots_ X-Git-Tag: release/2.15.21-1~57 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bac64a7481cde0252c0a7eafc14a25e3b9bc3892;p=lilypond.git lily-parser.cc: remove dead array define_spots_ --- diff --git a/lily/include/lily-parser.hh b/lily/include/lily-parser.hh index a98c760712..0859f72d61 100644 --- a/lily/include/lily-parser.hh +++ b/lily/include/lily-parser.hh @@ -35,8 +35,6 @@ class Lily_parser DECLARE_SMOBS (Lily_parser); friend int yyparse (void *); - vector define_spots_; - char const *here_str0 () const; Simultaneous_music *get_chord (Pitch tonic, vector *adds, vector *subs, diff --git a/lily/lily-parser.cc b/lily/lily-parser.cc index 196b36f557..557bc42696 100644 --- a/lily/lily-parser.cc +++ b/lily/lily-parser.cc @@ -131,12 +131,6 @@ Lily_parser::parse_file (string init, string name, string out_name) scm_set_current_module (mod); - if (!define_spots_.empty ()) - { - define_spots_.back ().warning (_ ("braces do not match")); - error_level_ = 1; - } - error_level_ = error_level_ | lexer_->error_level_; clear (); } @@ -156,13 +150,6 @@ Lily_parser::parse_string (string ly_code) do_yyparse (); scm_set_current_module (mod); - if (!define_spots_.empty ()) - { - if (define_spots_.empty () - && !error_level_) - programming_error ("define_spots_ don't match, but error_level_ not set."); - } - error_level_ = error_level_ | lexer_->error_level_; } @@ -185,13 +172,6 @@ Lily_parser::parse_string_expression (string ly_code) scm_set_current_module (mod); - if (!define_spots_.empty ()) - { - if (define_spots_.empty () - && !error_level_) - programming_error ("define_spots_ don't match, but error_level_ not set."); - } - error_level_ = error_level_ | lexer_->error_level_; return result; }