ENH: Remove commented code

This commit is contained in:
Andy Cedilnik 2003-07-08 16:27:13 -04:00
parent 44fa93c8a7
commit cf9562694f
1 changed files with 0 additions and 10 deletions

View File

@ -143,13 +143,11 @@ void cmGlob::ProcessDirectory(std::string::size_type start,
cmsys::Directory d; cmsys::Directory d;
if ( !d.Load(dir.c_str()) ) if ( !d.Load(dir.c_str()) )
{ {
//std::cout << "Cannot open directory: " << dir.c_str() << std::endl;
return; return;
} }
unsigned long cc; unsigned long cc;
std::string fullname; std::string fullname;
bool last = ( start == m_Internals->Expressions.size()-1 ); bool last = ( start == m_Internals->Expressions.size()-1 );
//std::cout << "Last: " << last << " Dironly: " << dir_only << std::endl;
for ( cc = 0; cc < d.GetNumberOfFiles(); cc ++ ) for ( cc = 0; cc < d.GetNumberOfFiles(); cc ++ )
{ {
if ( strcmp(d.GetFile(cc), ".") == 0 || 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()) ) if ( (!dir_only || !last) && !cmsys::SystemTools::FileIsDirectory(fullname.c_str()) )
{ {
//std::cout << " Ignore: " << fullname.c_str() << std::endl;
continue; continue;
} }
if ( m_Internals->Expressions[start].find(d.GetFile(cc)) ) if ( m_Internals->Expressions[start].find(d.GetFile(cc)) )
{ {
//std::cout << " Matches: " << fullname.c_str() << std::endl;
if ( last ) if ( last )
{ {
//std::cout << "--- find file: " << fullname.c_str() << "---" << std::endl;
m_Internals->Files.push_back(fullname); m_Internals->Files.push_back(fullname);
} }
else else
@ -184,10 +179,6 @@ void cmGlob::ProcessDirectory(std::string::size_type start,
this->ProcessDirectory(start+1, fullname, dir_only); 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 = cmsys::SystemTools::GetCurrentWorkingDirectory();
expr += "/" + inexpr; expr += "/" + inexpr;
} }
std::cout << "Expr: " << expr << std::endl;
for ( cc = 0; cc < expr.size(); cc ++ ) for ( cc = 0; cc < expr.size(); cc ++ )
{ {
int ch = expr[cc]; int ch = expr[cc];