cmTarget: Remove AddSourceFile method
It is no longer used.
This commit is contained in:
parent
26d494ba01
commit
59e8740aca
|
@ -578,16 +578,6 @@ void cmTarget::GetSourceFiles(std::vector<cmSourceFile*> &files) const
|
||||||
files = this->SourceFiles;
|
files = this->SourceFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
void cmTarget::AddSourceFile(cmSourceFile* sf)
|
|
||||||
{
|
|
||||||
if (std::find(this->SourceFiles.begin(), this->SourceFiles.end(), sf)
|
|
||||||
== this->SourceFiles.end())
|
|
||||||
{
|
|
||||||
this->SourceFiles.push_back(sf);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmTarget::AddSources(std::vector<std::string> const& srcs)
|
void cmTarget::AddSources(std::vector<std::string> const& srcs)
|
||||||
{
|
{
|
||||||
|
@ -653,7 +643,11 @@ cmSourceFile* cmTarget::AddSourceCMP0049(const std::string& s)
|
||||||
cmSourceFile* cmTarget::AddSource(const std::string& src)
|
cmSourceFile* cmTarget::AddSource(const std::string& src)
|
||||||
{
|
{
|
||||||
cmSourceFile* sf = this->Makefile->GetOrCreateSource(src);
|
cmSourceFile* sf = this->Makefile->GetOrCreateSource(src);
|
||||||
this->AddSourceFile(sf);
|
if (std::find(this->SourceFiles.begin(), this->SourceFiles.end(), sf)
|
||||||
|
== this->SourceFiles.end())
|
||||||
|
{
|
||||||
|
this->SourceFiles.push_back(sf);
|
||||||
|
}
|
||||||
return sf;
|
return sf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void GetSourceFiles(std::vector<std::string> &files) const;
|
void GetSourceFiles(std::vector<std::string> &files) const;
|
||||||
void GetSourceFiles(std::vector<cmSourceFile*> &files) const;
|
void GetSourceFiles(std::vector<cmSourceFile*> &files) const;
|
||||||
void AddSourceFile(cmSourceFile* sf);
|
|
||||||
std::vector<std::string> const& GetObjectLibraries() const
|
std::vector<std::string> const& GetObjectLibraries() const
|
||||||
{
|
{
|
||||||
return this->ObjectLibraries;
|
return this->ObjectLibraries;
|
||||||
|
|
Loading…
Reference in New Issue