From 229abfc8f945421c9ad491dff674e41d283ca80f Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 12 Apr 2017 15:37:06 -0400 Subject: cmGeneratorTarget: Drop unused UseObjectLibraries method --- Source/cmGeneratorTarget.cxx | 35 ----------------------------------- Source/cmGeneratorTarget.h | 3 --- 2 files changed, 38 deletions(-) diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 74d863d..cbaedb1 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1937,41 +1937,6 @@ bool cmGeneratorTarget::IsDLLPlatform() const return this->DLLPlatform; } -void cmGeneratorTarget::UseObjectLibraries(std::vector& objs, - const std::string& config) const -{ - std::vector objectFiles; - this->GetExternalObjects(objectFiles, config); - std::vector objectLibraries; - for (std::vector::const_iterator it = - objectFiles.begin(); - it != objectFiles.end(); ++it) { - std::string objLib = (*it)->GetObjectLibrary(); - if (cmGeneratorTarget* tgt = - this->LocalGenerator->FindGeneratorTargetToUse(objLib)) { - objectLibraries.push_back(tgt); - } - } - - std::vector::const_iterator end = - cmRemoveDuplicates(objectLibraries); - - for (std::vector::const_iterator ti = - objectLibraries.begin(); - ti != end; ++ti) { - cmGeneratorTarget* ogt = *ti; - std::vector objectSources; - ogt->GetObjectSources(objectSources, config); - for (std::vector::const_iterator si = - objectSources.begin(); - si != objectSources.end(); ++si) { - std::string obj = ogt->ObjectDirectory; - obj += ogt->Objects[*si]; - objs.push_back(obj); - } - } -} - void cmGeneratorTarget::GetAutoUicOptions(std::vector& result, const std::string& config) const { diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index 3b9819d..38ece2c 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -347,9 +347,6 @@ public: time config name placeholder if needed for the generator. */ std::string ObjectDirectory; - void UseObjectLibraries(std::vector& objs, - const std::string& config) const; - void GetAppleArchs(const std::string& config, std::vector& archVec) const; -- cgit v0.12