summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-01 17:50:13 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-02 14:17:21 (GMT)
commit907a919be15e262eee75c10d06ce314e912abdbe (patch)
tree5d9fa97f3d69286b136066c3d318aba751c18fde /Source/cmSystemTools.cxx
parented4de3c9849f323c735929ad3e32d2450ce303a9 (diff)
downloadCMake-907a919be15e262eee75c10d06ce314e912abdbe.zip
CMake-907a919be15e262eee75c10d06ce314e912abdbe.tar.gz
CMake-907a919be15e262eee75c10d06ce314e912abdbe.tar.bz2
cmSystemTools: Drop unused StringEndsWith method
It has no callers and we can inherit one from KWSys SystemTools anyway.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index cac6a12..65bfe79 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1409,15 +1409,6 @@ std::string cmSystemTools::ConvertToRunCommandPath(const char* path)
#endif
}
-bool cmSystemTools::StringEndsWith(const char* str1, const char* str2)
-{
- if ( !str1 || !str2 || strlen(str1) < strlen(str2) )
- {
- return 0;
- }
- return !strncmp(str1 + (strlen(str1)-strlen(str2)), str2, strlen(str2));
-}
-
// compute the relative path from here to there
std::string cmSystemTools::RelativePath(const char* local, const char* remote)
{