cmSystemTools: Drop unused StringEndsWith method
It has no callers and we can inherit one from KWSys SystemTools anyway.
This commit is contained in:
parent
ed4de3c984
commit
907a919be1
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -336,8 +336,6 @@ public:
|
|||
// be used when RunCommand is called from cmake, because the
|
||||
// running cmake needs paths to be in its format
|
||||
static std::string ConvertToRunCommandPath(const char* path);
|
||||
//! Check if the first string ends with the second one.
|
||||
static bool StringEndsWith(const char* str1, const char* str2);
|
||||
|
||||
/** compute the relative path from local to remote. local must
|
||||
be a directory. remote can be a file or a directory.
|
||||
|
|
Loading…
Reference in New Issue