]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/command-request.cc
release: 1.1.43
[lilypond.git] / lily / command-request.cc
index 1ab0353bc558ab32d3c74da961a4e5e34e09e678..335c92904251d2de49e8a0dbf46790dda6e176cb 100644 (file)
@@ -3,24 +3,13 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "command-request.hh"
 #include "debug.hh"
 #include "musical-request.hh"
 
-void
-Command_script_req::do_print() const
-{}
-Command_script_req::Command_script_req(){}
-Command_script_req::~Command_script_req(){}
-
-
-
-
-
-
 void
 Cadenza_req::do_print() const
 {
@@ -50,21 +39,12 @@ Bar_req::do_equal_b (Request*r) const
   return b && type_str_ == b->type_str_;
 }
 
-
-
-
-
-
 void
 Bar_req::do_print() const
 {
+#ifndef NPRINT
   DOUT << type_str_;
-}
-
-void
-Bracket_req::do_print () const
-{
-  Span_req::do_print ();
+#endif
 }
 
 Bar_req::Bar_req (String s)
@@ -74,7 +54,7 @@ Bar_req::Bar_req (String s)
 
 Partial_measure_req::Partial_measure_req (Moment m)
 {
-  duration_ =m;
+  length_mom_ =m;
 }
 
 bool
@@ -82,26 +62,9 @@ Partial_measure_req::do_equal_b (Request* r) const
 {
   Partial_measure_req *p = dynamic_cast <Partial_measure_req *> (r);
 
-  return p&& p->duration_ == duration_;
+  return p&& p->length_mom_ == length_mom_;
 }
 
-
-
-
-void
-Timing_req::do_print() const{}
-
-
-
-
-void
-Command_req::do_print() const{}
-
-
-
-void
-Barcheck_req::do_print() const{}
-
 bool
 Barcheck_req::do_equal_b (Request*r) const
 {
@@ -109,9 +72,6 @@ Barcheck_req::do_equal_b (Request*r) const
   return b;
 }
 
-
-
-
 void
 Clef_change_req::do_print() const
 {
@@ -125,15 +85,10 @@ Clef_change_req::Clef_change_req (String s)
   clef_str_ = s;
 }
 
-
-
-
-
-
 void
 Partial_measure_req::do_print() const
 {
-  DOUT << duration_;
+  DOUT << length_mom_;
 }
 
 
@@ -181,14 +136,9 @@ Tempo_req::do_equal_b (Request *r) const
 {
   Tempo_req *t = dynamic_cast <Tempo_req *> (r);
 
-  return t&& t->dur_.length()== dur_.length () && metronome_i_ == t->metronome_i_;
+  return t&& t->dur_.length_mom ()== dur_.length_mom () && metronome_i_ == t->metronome_i_;
 }
 
-
-
-
-
-
 void
 Measure_grouping_req::do_print() const
 {
@@ -333,13 +283,6 @@ Break_req::Break_req ()
   penalty_i_ = 0;
 }
 
-void
-Break_req::do_print () const
-{
-}
-
-
-
 Mark_req::Mark_req (String s)
 {
   str_ = s;