diff options
author | Brad King <brad.king@kitware.com> | 2009-04-21 15:36:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-04-21 15:36:59 (GMT) |
commit | 714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b (patch) | |
tree | 1921cb354af2b2e40060adc8cbeab50e673d1a3e /Source/kwsys/SystemTools.cxx | |
parent | 7bb8678fc649457deaac9527b785dbd43ee70928 (diff) | |
download | CMake-714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b.zip CMake-714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b.tar.gz CMake-714d2fc04ba0ba7b455ab30602aef4ebc69ecf1b.tar.bz2 |
ENH: Remove obscure method from KWSys SystemTools
This removes SystemTools::FileExistsInParentDirectories from KWSys since
it is a special-purpose method that is not generally useful.
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 2dd3213..928dc37 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -4000,29 +4000,6 @@ bool SystemTools::IsSubDirectory(const char* cSubdir, const char* cDir) return false; } -kwsys_stl::string SystemTools::FileExistsInParentDirectories(const char* fname, - const char* directory, const char* toplevel) -{ - kwsys_stl::string file = fname; - SystemTools::ConvertToUnixSlashes(file); - kwsys_stl::string dir = directory; - SystemTools::ConvertToUnixSlashes(dir); - while ( !dir.empty() ) - { - kwsys_stl::string path = dir + "/" + file; - if ( SystemTools::FileExists(path.c_str()) ) - { - return path; - } - if ( dir.size() < strlen(toplevel) ) - { - break; - } - dir = SystemTools::GetParentDirectory(dir.c_str()); - } - return ""; -} - void SystemTools::Delay(unsigned int msec) { #ifdef _WIN32 |