cmTarget: Remove AddSourceFile method

It is no longer used.
This commit is contained in:
Stephen Kelly 2014-03-17 18:45:37 +01:00
parent 26d494ba01
commit 59e8740aca
2 changed files with 5 additions and 12 deletions

View File

@ -578,16 +578,6 @@ void cmTarget::GetSourceFiles(std::vector<cmSourceFile*> &files) const
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)
{
@ -653,7 +643,11 @@ cmSourceFile* cmTarget::AddSourceCMP0049(const std::string& s)
cmSourceFile* cmTarget::AddSource(const std::string& 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;
}

View File

@ -137,7 +137,6 @@ public:
*/
void GetSourceFiles(std::vector<std::string> &files) const;
void GetSourceFiles(std::vector<cmSourceFile*> &files) const;
void AddSourceFile(cmSourceFile* sf);
std::vector<std::string> const& GetObjectLibraries() const
{
return this->ObjectLibraries;