From 012603c746b4135905eb0e36f3a4cd01ea088e64 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 13 Jun 2001 13:53:11 -0400 Subject: [PATCH] duh --- Source/cmTarget.cxx | 37 ++++--------------------------------- Source/cmTarget.h | 8 -------- 2 files changed, 4 insertions(+), 41 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 26e4ff36c..50a2c17da 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -62,26 +62,9 @@ void cmTarget::GenerateSourceFilesFromSourceLists(const cmMakefile &mf) const std::vector &clsList = mf.GetSources().find(temps)->second; // if we ahave a limited build list, use it - if (m_LimitedBuildList.empty()) - { - m_SourceFiles.insert(m_SourceFiles.end(), - clsList.begin(), - clsList.end()); - } - else - { - std::vector::const_iterator si = clsList.begin(); - for (; si != clsList.end(); ++si) - { - // is it on the approved list ? - if (std::find(m_LimitedBuildList.begin(), - m_LimitedBuildList.end(), - si->GetFullPath()) != m_LimitedBuildList.end()) - { - m_SourceFiles.push_back(*si); - } - } - } + m_SourceFiles.insert(m_SourceFiles.end(), + clsList.begin(), + clsList.end()); } // if one wasn't found then assume it is a single class else @@ -89,19 +72,7 @@ void cmTarget::GenerateSourceFilesFromSourceLists(const cmMakefile &mf) cmSourceFile file; file.SetIsAnAbstractClass(false); file.SetName(temps.c_str(), mf.GetCurrentDirectory()); - if (m_LimitedBuildList.empty()) - { - m_SourceFiles.push_back(file); - } - else - { - if (std::find(m_LimitedBuildList.begin(), - m_LimitedBuildList.end(), - file.GetFullPath()) != m_LimitedBuildList.end()) - { - m_SourceFiles.push_back(file); - } - } + m_SourceFiles.push_back(file); } } diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 50d81d75c..031a4144b 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -86,13 +86,6 @@ public: {return m_SourceLists;} std::vector &GetSourceLists() {return m_SourceLists;} - /** - * Get the list of the source lists used by this target - */ - const std::vector &GetLimitedBuildList() const - {return m_LimitedBuildList;} - std::vector &GetLimitedBuildList() {return m_LimitedBuildList;} - /** * Get the list of the source files used by this target */ @@ -135,7 +128,6 @@ public: std::setconst& GetUtilities() const { return m_Utilities; } private: - std::vector m_LimitedBuildList; std::vector m_CustomCommands; std::vector m_SourceLists; TargetType m_TargetType;