]> git.tdb.fi Git - builder.git/blobdiff - source/package.cpp
Replace per-file copyright notices with a single file
[builder.git] / source / package.cpp
index 6e60b76992b4cc9123eca2906644deab8445cac4..c4710bca79a4f6082b7dd3e7b62297e85a247599 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/io/print.h>
 #include <msp/strings/lexicalcast.h>
 #include <msp/strings/utils.h>
@@ -22,22 +15,6 @@ Package::Package(Builder &b, const string &n):
        use_pkgconfig(true)
 { }
 
-PackageList Package::collect_requires()
-{
-       PackageList result;
-       result.push_back(this);
-       for(PackageList::const_iterator i=requires.begin(); i!=requires.end(); ++i)
-       {
-               PackageList r=(*i)->collect_requires();
-               result.splice(result.end(), r);
-       }
-
-       result.sort();
-       result.unique();
-
-       return result;
-}
-
 void Package::configure(const StringMap &opts, unsigned flag)
 {
        if(conf_done)
@@ -56,7 +33,7 @@ void Package::configure(const StringMap &opts, unsigned flag)
 
        create_build_info();
 
-       conf_done=true;
+       conf_done = true;
 }
 
 
@@ -68,7 +45,7 @@ Package::Loader::Loader(Package &p):
 
 void Package::Loader::require(const string &n)
 {
-       Package *req=pkg.builder.get_package(n);
+       Package *req = pkg.builder.get_package(n);
        if(req)
                pkg.requires.push_back(req);
 }