summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-12 15:37:06 -0400
committerBrad King <brad.king@kitware.com>2017-04-12 15:38:54 -0400
commit229abfc8f945421c9ad491dff674e41d283ca80f (patch)
treeb598a46b6ecf36a5b6cc68c6987c27c4bee98b74
parent63fbf587509c63395c024026b7bf264dbae446a1 (diff)
downloadcmake-229abfc8f945421c9ad491dff674e41d283ca80f.tar.gz
cmGeneratorTarget: Drop unused UseObjectLibraries method
-rw-r--r--Source/cmGeneratorTarget.cxx35
-rw-r--r--Source/cmGeneratorTarget.h3
2 files changed, 0 insertions, 38 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 74d863d60c..cbaedb150e 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<std::string>& objs,
- const std::string& config) const
-{
- std::vector<cmSourceFile const*> objectFiles;
- this->GetExternalObjects(objectFiles, config);
- std::vector<cmGeneratorTarget*> objectLibraries;
- for (std::vector<cmSourceFile const*>::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<cmGeneratorTarget*>::const_iterator end =
- cmRemoveDuplicates(objectLibraries);
-
- for (std::vector<cmGeneratorTarget*>::const_iterator ti =
- objectLibraries.begin();
- ti != end; ++ti) {
- cmGeneratorTarget* ogt = *ti;
- std::vector<cmSourceFile const*> objectSources;
- ogt->GetObjectSources(objectSources, config);
- for (std::vector<cmSourceFile const*>::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<std::string>& result,
const std::string& config) const
{
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 3b9819d125..38ece2c7b9 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<std::string>& objs,
- const std::string& config) const;
-
void GetAppleArchs(const std::string& config,
std::vector<std::string>& archVec) const;