From 33784484a37257ad820a577f0314ab10f36aa327 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:02:42 +0000 Subject: [PATCH] lilypond-0.1.14 --- lily/axis-group.cc | 80 -------------------------------- lily/break-caching.cc | 1 - lily/include/axis-group.hh | 12 ----- lily/include/input-translator.hh | 50 -------------------- 4 files changed, 143 deletions(-) delete mode 100644 lily/axis-group.cc delete mode 100644 lily/break-caching.cc delete mode 100644 lily/include/axis-group.hh delete mode 100644 lily/include/input-translator.hh diff --git a/lily/axis-group.cc b/lily/axis-group.cc deleted file mode 100644 index b0161fa2a4..0000000000 --- a/lily/axis-group.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - axis-group.cc -- implement Axis_group_administration - - source file of the GNU LilyPond music typesetter - - (c) 1997 Han-Wen Nienhuys -*/ -#include "interval.hh" -#include "axis-group-administration.hh" -#include "score-elem.hh" -#include "debug.hh" - -/** don't copy anything: an element can only be in one - Axis_group_element at one time. */ -Axis_group_administration::Axis_group_administration (Axis_group_administration const&) -{ -} - -bool -Axis_group_administration::contains_b (Score_elem const *e) const -{ - return elem_l_arr_.find_l (e); -} - -Interval -Axis_group_administration::extent (Axis axis) const -{ - Interval r; - for (int i=0; i < elem_l_arr_.size(); i++) - r.unite (elem_l_arr_[i]->extent (axis)); - return r; -} - -void -Axis_group_administration::add_element (Score_elem*e, - Axis_group_element*g, Axis a1, Axis a2) -{ - Axis_group_element *& g1=e->axis_group_l_a_[a1]; - Axis_group_element *& g2 = e->axis_group_l_a_[a2]; - - assert (!g1 || g1 == g); - assert (!g2 || g2 == g); - g1 = g; - g2 = g; - elem_l_arr_.push (e); -} - - - -void -Axis_group_administration::remove_element (Score_elem*e, Axis a1, Axis a2) -{ - assert (contains_b (e)); - elem_l_arr_.unordered_substitute (e,0); - - e->axis_group_l_a_[a1] = 0; - e->axis_group_l_a_[a2] = 0; -} - -void -Axis_group_administration::remove_all (Axis a1, Axis a2) -{ - for (int i=0; i < elem_l_arr_.size(); i++) - { - Score_elem*e=elem_l_arr_[i]; - e->axis_group_l_a_[a1] = 0; - e->axis_group_l_a_[a2] = 0; - } - elem_l_arr_.clear(); -} - - -void -Axis_group_administration::print() const -{ -#ifndef NPRINT - for (int i=0; i < elem_l_arr_.size(); i++) - DOUT << elem_l_arr_[i]->name() << ' '; -#endif -} diff --git a/lily/break-caching.cc b/lily/break-caching.cc deleted file mode 100644 index 8b13789179..0000000000 --- a/lily/break-caching.cc +++ /dev/null @@ -1 +0,0 @@ - diff --git a/lily/include/axis-group.hh b/lily/include/axis-group.hh deleted file mode 100644 index 152688ce69..0000000000 --- a/lily/include/axis-group.hh +++ /dev/null @@ -1,12 +0,0 @@ -/* -axis-group-element.hh -- declare Axis_group_administration, Axis_group_element - - source file of the GNU LilyPond music typesetter - - (c) 1997 Han-Wen Nienhuys -*/ - - -#error -#ifndef Axis_group_administration_HH -#define Axis_group_administration_HH#endif // Axis_group_administration_HH diff --git a/lily/include/input-translator.hh b/lily/include/input-translator.hh deleted file mode 100644 index 115a48a1fe..0000000000 --- a/lily/include/input-translator.hh +++ /dev/null @@ -1,50 +0,0 @@ -/* - input-translator.hh -- declare Input_translator - - source file of the GNU LilyPond music typesetter - - (c) 1997 Han-Wen Nienhuys -*/ - - -#ifndef INPUT_TRANSLATOR_HH -#define INPUT_TRANSLATOR_HH - -#include "plist.hh" -#include "string.hh" -#include "lily-proto.hh" -#include "input.hh" -#include "string.hh" -#error -#include "varray.hh" - -struct Input_translator_list : public Pointer_list -{ - Input_translator_list (Input_translator_list const &); - Input_translator_list(){} - ~Input_translator_list(){} -}; - -/** Define a intereter for music. This is an runtime interface to the - typesystem */ -class Input_translator : public Input { -public: - Input_translator_list contains_itrans_p_list_; - Array consists_str_arr_; - Array alias_str_arr_; - String base_str_; - String type_str_; - String default_id_str_; - - void add (Input_translator *); - bool is_name_b (String); - bool accept_req_b(); - bool accepts_b (String); - void print() const; - Translator_group * get_group_translator_p(); - Input_translator * get_default_itrans_l(); - Input_translator * recursive_find (String nm); - Input_translator * find_itrans_l (String nm); -}; - -#endif // Input_translator_HH -- 2.39.5