]> git.donarmstrong.com Git - lilypond.git/commitdiff
lily-parser.cc: remove dead array define_spots_
authorDavid Kastrup <dak@gnu.org>
Wed, 23 Nov 2011 23:55:51 +0000 (00:55 +0100)
committerDavid Kastrup <dak@gnu.org>
Thu, 24 Nov 2011 10:33:26 +0000 (11:33 +0100)
lily/include/lily-parser.hh
lily/lily-parser.cc

index a98c760712cb6914f2a2c7b5ed36ddcbf3c272ec..0859f72d61c84885cec6c5301325c29075ff56f7 100644 (file)
@@ -35,8 +35,6 @@ class Lily_parser
   DECLARE_SMOBS (Lily_parser);
   friend int yyparse (void *);
 
-  vector<Input> define_spots_;
-
   char const *here_str0 () const;
   Simultaneous_music *get_chord (Pitch tonic,
                                  vector<Pitch> *adds, vector<Pitch> *subs,
index 196b36f55792ee98a2957b1fc2ca76417fb68a5b..557bc42696b278211a1b2bcd8674dea769af9170 100644 (file)
@@ -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;
 }