From e89616b514c77e189b93d5a46aa5a5a72e34c3cb Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 10 Jul 2012 17:32:05 +0300 Subject: [PATCH] Remove dead code --- source/component.cpp | 11 ----------- source/component.h | 2 -- 2 files changed, 13 deletions(-) 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(); -- 2.43.0