]> git.tdb.fi Git - builder.git/commitdiff
Remove dead code
authorMikko Rasa <tdb@tdb.fi>
Tue, 10 Jul 2012 14:32:05 +0000 (17:32 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 10 Jul 2012 20:55:52 +0000 (23:55 +0300)
source/component.cpp
source/component.h

index 3c5a40945ed56184e4776edd7cb74b0ec3ee5b91..902cf49abfe6d1142d0d4c50819a7cc103e0edaa 100644 (file)
@@ -256,17 +256,6 @@ Component::Loader::Loader(Component &c):
        add("default",         &Component::deflt);
 }
 
-void Component::Loader::finish()
-{
-       if(!inst_hdr.empty())
-       {
-               Component hdrcomp(comp.pkg, HEADERS, inst_hdr);
-               hdrcomp.sources = comp.sources;
-               hdrcomp.install = true;
-               const_cast<ComponentList &>(comp.pkg.get_components()).push_back(hdrcomp);
-       }
-}
-
 void Component::Loader::source(const string &s)
 {
        comp.sources.push_back(s);
index 0d67fdeb874deaa60c1438f01764bbb1c697bf9c..5efed1a08ad06bd1ef4db470b3c263f4f4d53f09 100644 (file)
@@ -24,13 +24,11 @@ public:
        {
        private:
                Component &comp;
-               std::string inst_hdr;
 
        public:
                Loader(Component &);
                Component &get_object() { return comp; }
        private:
-               virtual void finish();
                void source(const std::string &);
                void require(const std::string &);
                void build_info();