summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-08 20:27:13 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-08 20:27:13 (GMT)
commitcf9562694fb81674e6988a97b47443a8a6135b76 (patch)
tree13a70b2861f3d55fe8a1d3499bffde6186953b6b
parent44fa93c8a70a1cd7deb5a5c8e8be6bd8cd52e149 (diff)
downloadCMake-cf9562694fb81674e6988a97b47443a8a6135b76.zip
CMake-cf9562694fb81674e6988a97b47443a8a6135b76.tar.gz
CMake-cf9562694fb81674e6988a97b47443a8a6135b76.tar.bz2
ENH: Remove commented code
-rw-r--r--Source/cmGlob.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/cmGlob.cxx b/Source/cmGlob.cxx
index 6430c48..bb4d421 100644
--- a/Source/cmGlob.cxx
+++ b/Source/cmGlob.cxx
@@ -143,13 +143,11 @@ void cmGlob::ProcessDirectory(std::string::size_type start,
cmsys::Directory d;
if ( !d.Load(dir.c_str()) )
{
- //std::cout << "Cannot open directory: " << dir.c_str() << std::endl;
return;
}
unsigned long cc;
std::string fullname;
bool last = ( start == m_Internals->Expressions.size()-1 );
- //std::cout << "Last: " << last << " Dironly: " << dir_only << std::endl;
for ( cc = 0; cc < d.GetNumberOfFiles(); cc ++ )
{
if ( strcmp(d.GetFile(cc), ".") == 0 ||
@@ -168,15 +166,12 @@ void cmGlob::ProcessDirectory(std::string::size_type start,
if ( (!dir_only || !last) && !cmsys::SystemTools::FileIsDirectory(fullname.c_str()) )
{
- //std::cout << " Ignore: " << fullname.c_str() << std::endl;
continue;
}
if ( m_Internals->Expressions[start].find(d.GetFile(cc)) )
{
- //std::cout << " Matches: " << fullname.c_str() << std::endl;
if ( last )
{
- //std::cout << "--- find file: " << fullname.c_str() << "---" << std::endl;
m_Internals->Files.push_back(fullname);
}
else
@@ -184,10 +179,6 @@ void cmGlob::ProcessDirectory(std::string::size_type start,
this->ProcessDirectory(start+1, fullname, dir_only);
}
}
- else
- {
- //std::cout << " Not Matches: " << fullname.c_str() << std::endl;
- }
}
}
@@ -205,7 +196,6 @@ bool cmGlob::FindFiles(const std::string& inexpr)
expr = cmsys::SystemTools::GetCurrentWorkingDirectory();
expr += "/" + inexpr;
}
- std::cout << "Expr: " << expr << std::endl;
for ( cc = 0; cc < expr.size(); cc ++ )
{
int ch = expr[cc];