]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/score-column.cc
release: 1.3.14
[lilypond.git] / lily / score-column.cc
index 1827c046393de0e10719120ea9078ec6b8d16928..40363f393e1c264c53bc6b479c5c455a9540f3a0 100644 (file)
@@ -1,56 +1,7 @@
 /*
-  score-column.cc -- implement Score_column
+  score-column.cc -- implement Paper_column
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-
-#include "debug.hh"
-#include "p-col.hh"
-#include "score-column.hh"
-
-Score_column::Score_column (Moment w)
-{
-  when_ = w;
-  musical_b_ = false;
-}
-
-void
-Score_column::do_print() const
-{
-#ifndef NPRINT
-  DOUT << "mus "<< musical_b_ <<" at " <<  when_<<'\n';
-  DOUT << "durations: [";
-  for (int i=0; i < durations.size(); i++)
-    DOUT << durations[i] << " ";
-  DOUT << "]\n";
-  Paper_column::do_print();
-#endif
-}
-
-int
-Moment_compare (Moment const &m1, Moment const &m2)
-{
-  return sign (m1-m2);
-}
-
-void
-Score_column::preprocess()
-{
-  durations.sort (Moment_compare);
-}
-
-void
-Score_column::add_duration (Moment d)
-{
-  assert (d);
-  for (int i = 0; i< durations.size(); i++) 
-    {
-      if (d == durations[i])
-       return ;
-    }
-  durations.push (d);
-}
-
-IMPLEMENT_IS_TYPE_B1(Score_column, Paper_column);