summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-08-23 22:02:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-08-23 22:02:30 (GMT)
commit538ff79e2f606c4c3722d94e10f0a759a1f97d86 (patch)
treef5921690ef9778d9418e0fb74d260375398850c2 /Source/cmSystemTools.cxx
parenta4f40c31f1e160ab34d90c1a5e9ed5ab6cc1de59 (diff)
downloadCMake-538ff79e2f606c4c3722d94e10f0a759a1f97d86.zip
CMake-538ff79e2f606c4c3722d94e10f0a759a1f97d86.tar.gz
CMake-538ff79e2f606c4c3722d94e10f0a759a1f97d86.tar.bz2
ENH: improve coverage
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 8ecd0c3..5020969 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -404,38 +404,6 @@ void cmSystemTools::CleanUpWindowsSlashes(std::string& path)
}
-int cmSystemTools::Grep(const char* dir, const char* file,
- const char* expression)
-{
- std::string path = dir;
- path += "/";
- path += file;
- std::ifstream fin(path.c_str());
- char buffer[2056];
- int count = 0;
- cmRegularExpression reg(expression);
- while(fin)
- {
- fin.getline(buffer, sizeof(buffer));
- count += reg.find(buffer);
- }
- return count;
-}
-
-
-void cmSystemTools::ConvertCygwinPath(std::string& pathname)
-{
- if(pathname.find("/cygdrive/") != std::string::npos)
- {
- std::string cygStuff = pathname.substr(0, 11);
- std::string replace;
- replace += cygStuff.at(10);
- replace += ":";
- cmSystemTools::ReplaceString(pathname, cygStuff.c_str(), replace.c_str());
- }
-}
-
-
bool cmSystemTools::ParseFunction(std::ifstream& fin,
std::string& name,
std::vector<std::string>& arguments)