From bac64a7481cde0252c0a7eafc14a25e3b9bc3892 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Thu, 24 Nov 2011 00:55:51 +0100 Subject: [PATCH] lily-parser.cc: remove dead array define_spots_ --- lily/include/lily-parser.hh | 2 -- lily/lily-parser.cc | 20 -------------------- 2 files changed, 22 deletions(-) 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; } -- 2.39.2