From d636e97093d5b65361f752cae5545cc41565837a Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 2 Nov 2006 14:08:38 +0100 Subject: [PATCH] clean up Sources --- lily/include/source.hh | 4 +--- lily/source.cc | 21 ++++----------------- 2 files changed, 5 insertions(+), 20 deletions(-) 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; -} - -- 2.39.5