From 2824bf6049ca3b032393a5aee6e6db86f47e0389 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 29 Oct 2003 19:38:37 +0000 Subject: [PATCH] remove old code --- stepmania/src/RageUtil.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 8bdcf9db94..ee08f8c254 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -386,41 +386,6 @@ bool Rename( const char *oldname, const char *newname ) return 0 == rename( oldname, newname ); } -#if 0 -void GetDirListing( CString sPath, CStringArray &AddTo, bool bOnlyDirs, bool bReturnPathToo ) -{ - CString sDir, sThrowAway; - splitrelpath( sPath, sDir, sThrowAway, sThrowAway ); - - /* XXX: We should use Find* to get a file list only, and handle - * wildcard matching ourself. Windows matching is braindead. For - * example, *.dwi matches "foo.dwi~". */ - WIN32_FIND_DATA fd; - HANDLE hFind = ::FindFirstFile( sPath, &fd ); - - if( INVALID_HANDLE_VALUE == hFind ) // no files found - return; - - do - { - if( bOnlyDirs && !(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ) - continue; // skip - - CString sDirName( fd.cFileName ); - - if( sDirName == "." || sDirName == ".." ) - continue; - - if( bReturnPathToo ) - AddTo.push_back( sDir + sDirName ); - else - AddTo.push_back( sDirName ); - - - } while( ::FindNextFile( hFind, &fd ) ); - ::FindClose( hFind ); -} -#endif /* Reference: http://www.theorem.com/java/CRC32.java, rewritten by Glenn Maynard. * Public domain. */