cmSourceFileLocation: Remove unused Update method.
The string overload is never called. This allows the removal of the unused UpdateDirectory method.
This commit is contained in:
parent
59e8740aca
commit
fcc9287897
|
@ -64,19 +64,6 @@ cmSourceFileLocation
|
|||
this->UpdateExtension(name);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmSourceFileLocation::Update(const std::string& name)
|
||||
{
|
||||
if(this->AmbiguousDirectory)
|
||||
{
|
||||
this->UpdateDirectory(name);
|
||||
}
|
||||
if(this->AmbiguousExtension)
|
||||
{
|
||||
this->UpdateExtension(name);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmSourceFileLocation::Update(cmSourceFileLocation const& loc)
|
||||
{
|
||||
|
@ -175,17 +162,6 @@ void cmSourceFileLocation::UpdateExtension(const std::string& name)
|
|||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmSourceFileLocation::UpdateDirectory(const std::string& name)
|
||||
{
|
||||
// If a full path was given we know the directory.
|
||||
if(cmSystemTools::FileIsFullPath(name.c_str()))
|
||||
{
|
||||
this->Directory = cmSystemTools::GetFilenamePath(name);
|
||||
this->AmbiguousDirectory = false;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
cmSourceFileLocation
|
||||
|
|
|
@ -96,9 +96,7 @@ private:
|
|||
|
||||
// Update the location with additional knowledge.
|
||||
void Update(cmSourceFileLocation const& loc);
|
||||
void Update(const std::string& name);
|
||||
void UpdateExtension(const std::string& name);
|
||||
void UpdateDirectory(const std::string& name);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue