cmTarget: Drop 'head' argument from ComputeLinkImplementationLanguages

No call sites need it to be anything but 'this'.
This commit is contained in:
Brad King 2014-07-10 16:02:46 -04:00
parent c72642f927
commit 190cabe7c1
2 changed files with 4 additions and 6 deletions

View File

@ -6405,7 +6405,7 @@ cmTarget::GetLinkImplementation(const std::string& config) const
if(!impl.LanguagesDone)
{
impl.LanguagesDone = true;
this->ComputeLinkImplementationLanguages(config, impl, this);
this->ComputeLinkImplementationLanguages(config, impl);
}
return &impl;
}
@ -6546,13 +6546,12 @@ void cmTarget::ComputeLinkImplementation(const std::string& config,
//----------------------------------------------------------------------------
void
cmTarget::ComputeLinkImplementationLanguages(const std::string& config,
LinkImplementation& impl,
cmTarget const* head) const
LinkImplementation& impl) const
{
// This target needs runtime libraries for its source languages.
std::set<std::string> languages;
// Get languages used in our source files.
this->GetLanguages(languages, config, head);
this->GetLanguages(languages, config, this);
// Copy the set of langauges to the link implementation.
for(std::set<std::string>::iterator li = languages.begin();
li != languages.end(); ++li)

View File

@ -787,8 +787,7 @@ private:
LinkImplementation& impl,
cmTarget const* head) const;
void ComputeLinkImplementationLanguages(const std::string& config,
LinkImplementation& impl,
cmTarget const* head) const;
LinkImplementation& impl) const;
void ComputeLinkClosure(const std::string& config, LinkClosure& lc) const;
void ExpandLinkItems(std::string const& prop, std::string const& value,