summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-27 23:09:39 +0100
committerStephen Kelly <steveire@gmail.com>2014-03-31 23:18:43 +0200
commitfcc9287897dd9b378c2f87329346c2f23becd54f (patch)
tree12470328fb5db530ce076e3064a27225d2459beb /Source
parent59e8740acaf0b749e8a7028f168a6a6d6d69194f (diff)
downloadcmake-fcc9287897dd9b378c2f87329346c2f23becd54f.tar.gz
cmSourceFileLocation: Remove unused Update method.
The string overload is never called. This allows the removal of the unused UpdateDirectory method.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSourceFileLocation.cxx24
-rw-r--r--Source/cmSourceFileLocation.h2
2 files changed, 0 insertions, 26 deletions
diff --git a/Source/cmSourceFileLocation.cxx b/Source/cmSourceFileLocation.cxx
index 3e78b299e9..24e646fc90 100644
--- a/Source/cmSourceFileLocation.cxx
+++ b/Source/cmSourceFileLocation.cxx
@@ -65,19 +65,6 @@ cmSourceFileLocation
}
//----------------------------------------------------------------------------
-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)
{
if(this->AmbiguousDirectory && !loc.AmbiguousDirectory)
@@ -176,17 +163,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
::MatchesAmbiguousExtension(cmSourceFileLocation const& loc) const
diff --git a/Source/cmSourceFileLocation.h b/Source/cmSourceFileLocation.h
index 82a62ab4f1..c37fb1df5f 100644
--- a/Source/cmSourceFileLocation.h
+++ b/Source/cmSourceFileLocation.h
@@ -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