]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-score-bar.cc
release: 1.0.1
[lilypond.git] / lily / span-score-bar.cc
index 0849f15c609b1c3dfb09db00c45659661f3022b6..6952062a67291eb7cbcbf99fb24db21e18d26b2e 100644 (file)
@@ -3,13 +3,14 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "span-score-bar.hh"
 #include "atom.hh"
 #include "paper-def.hh"
 #include "lookup.hh"
+#include "main.hh"
 
 Span_score_bar::Span_score_bar()
 {
@@ -19,7 +20,7 @@ void
 Score_bar::do_pre_processing ()
 {
   type_str_ = "|";
-  if (break_status_i() != 1
+  if (break_status_dir() != RIGHT
     {
       set_empty (true);
       transparent_b_ = true;
@@ -36,35 +37,6 @@ Span_score_bar::do_pre_processing()
   //  Span_bar::do_pre_processing();
 }
 
-Atom
-Piano_brace::get_bar_sym (Real dy) const
-{
-  return paper()->lookup_l ()->vbrace (dy);
-}
-
-Interval
-Piano_brace::do_width() const
-{
-  return Interval (0,0);
-}
-
-Atom
-Staff_bracket::get_bar_sym (Real dy) const
-{
-  Atom a = paper()->lookup_l ()->vbracket (dy);
-  a.translate_axis (- 1.5 * a.extent ().x ().length (), X_AXIS);
-  return a;
-}
-
-Interval
-Staff_bracket::do_width() const
-{
-  return Interval (0,0);
-}
-
-
 IMPLEMENT_IS_TYPE_B2(Span_score_bar, Span_bar, Score_bar);
-IMPLEMENT_IS_TYPE_B1(Piano_brace, Span_score_bar);
-IMPLEMENT_IS_TYPE_B1(Staff_bracket, Span_score_bar);