]> git.donarmstrong.com Git - lilypond.git/commitdiff
clean up Sources
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Nov 2006 13:08:38 +0000 (14:08 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Nov 2006 13:08:38 +0000 (14:08 +0100)
lily/include/source.hh
lily/source.cc

index 09c6b0553f4e19d23c196a0de9f763341600c220..b06266b4fc8df483db94779bf6dd823ccc0901bf 100644 (file)
@@ -13,9 +13,8 @@
 /*   A set of sourcefiles.  */
 class Sources
 {
-  Sources (Sources const &) {}
+  Sources (Sources const &);
   vector<Source_file*> 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_;
 };
index 9d978d4fae93d9b5e20e8b86fed9f6daa7b331ba..811b4dd6814dd541400b38895eae08f39c16ed88 100644 (file)
 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<Source_file*>::iterator i = sourcefiles_.begin();
-       i != sourcefiles_.end (); i++)
-    {
-      if ((*i)->contains (str0))
-       return *i;
-    }
-
-  return 0;
-}
-