diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 17 | ||||
-rw-r--r-- | Source/cmSystemTools.h | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index bb9ada6..37404c2 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1789,23 +1789,6 @@ std::string cmSystemTools::GetFilenameExtension(const std::string& filename) } } -/** - * Return file extension of a full filename (dot included). - */ -std::string cmSystemTools::GetFilenameShortestExtension(const std::string& filename) -{ - std::string name = cmSystemTools::GetFilenameName(filename); - std::string::size_type dot_pos = name.rfind("."); - if(dot_pos != std::string::npos) - { - return name.substr(dot_pos); - } - else - { - return ""; - } -} - /** * Return file name without extension of a full filename (i.e. without path). diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index df12513..8024617 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -248,7 +248,6 @@ public: ///! return file extension of a full filename (dot included). static std::string GetFilenameExtension(const std::string&); - static std::string GetFilenameShortestExtension(const std::string&); ///! return file name without extension of a full filename. static std::string GetFilenameNameWithoutExtension(const std::string&); |