From: Han-Wen Nienhuys Date: Thu, 2 Nov 2006 13:08:38 +0000 (+0100) Subject: clean up Sources X-Git-Tag: release/2.10.0-2~34^2~33 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d636e97093d5b65361f752cae5545cc41565837a;p=lilypond.git clean up Sources --- diff --git a/lily/include/source.hh b/lily/include/source.hh index 09c6b0553f..b06266b4fc 100644 --- a/lily/include/source.hh +++ b/lily/include/source.hh @@ -13,9 +13,8 @@ /* A set of sourcefiles. */ class Sources { - Sources (Sources const &) {} + Sources (Sources const &); vector sourcefiles_; - bool is_binary_; public: Sources (); @@ -25,7 +24,6 @@ public: Source_file *get_sourcefile (char const *); void add (Source_file *sourcefile); void set_path (File_path *); - void set_binary (bool); const File_path *path_; }; diff --git a/lily/source.cc b/lily/source.cc index 9d978d4fae..811b4dd681 100644 --- a/lily/source.cc +++ b/lily/source.cc @@ -14,15 +14,15 @@ Sources::Sources () { path_ = 0; - is_binary_ = false; } -void -Sources::set_binary (bool bo) + +Sources::Sources (Sources const &) { - is_binary_ = bo; + assert (false); } + void Sources::set_path (File_path *f) { @@ -64,16 +64,3 @@ Sources::~Sources () } } -Source_file * -Sources::get_sourcefile (char const *str0) -{ - for (vector::iterator i = sourcefiles_.begin(); - i != sourcefiles_.end (); i++) - { - if ((*i)->contains (str0)) - return *i; - } - - return 0; -} -