From: Mikko Rasa Date: Tue, 10 Jul 2012 14:32:05 +0000 (+0300) Subject: Remove dead code X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e89616b514c77e189b93d5a46aa5a5a72e34c3cb;p=builder.git Remove dead code --- diff --git a/source/component.cpp b/source/component.cpp index 3c5a409..902cf49 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -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(comp.pkg.get_components()).push_back(hdrcomp); - } -} - void Component::Loader::source(const string &s) { comp.sources.push_back(s); diff --git a/source/component.h b/source/component.h index 0d67fde..5efed1a 100644 --- a/source/component.h +++ b/source/component.h @@ -24,13 +24,11 @@ public: { private: Component ∁ - 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();