remove unused

This commit is contained in:
Glenn Maynard
2006-10-18 20:02:26 +00:00
parent 001a57c2e1
commit 508aaa2857
2 changed files with 0 additions and 69 deletions
-59
View File
@@ -1970,65 +1970,6 @@ namespace StringConversion
}
}
//
// Helper function for reading/writing scores
//
bool FileRead( RageFileBasic& f, RString& sOut )
{
if( f.AtEOF() )
return false;
if( f.GetLine(sOut) == -1 )
return false;
return true;
}
bool FileRead( RageFileBasic& f, int& iOut )
{
RString s;
if( !FileRead(f, s) )
return false;
iOut = atoi(s);
return true;
}
bool FileRead( RageFileBasic& f, unsigned& uOut )
{
RString s;
if( !FileRead(f, s) )
return false;
uOut = atoi(s);
return true;
}
bool FileRead( RageFileBasic& f, float& fOut )
{
RString s;
if( !FileRead(f, s) )
return false;
fOut = StringToFloat( s );
return true;
}
void FileWrite( RageFileBasic& f, const RString& sWrite )
{
f.PutLine( sWrite );
}
void FileWrite( RageFileBasic& f, int iWrite )
{
f.PutLine( ssprintf("%d", iWrite) );
}
void FileWrite( RageFileBasic& f, size_t uWrite )
{
f.PutLine( ssprintf("%i", (int)uWrite) );
}
void FileWrite( RageFileBasic& f, float fWrite )
{
f.PutLine( ssprintf("%f", fWrite) );
}
bool FileCopy( const RString &sSrcFile, const RString &sDstFile )
{
if( !sSrcFile.CompareNoCase(sDstFile) )
-10
View File
@@ -568,17 +568,7 @@ namespace StringConversion
template<> inline RString ToString<RString>( const RString &value ) { return value; }
}
// helper file functions used by Bookkeeper and ProfileManager
class RageFileBasic;
bool FileRead( RageFileBasic& f, RString& sOut );
bool FileRead( RageFileBasic& f, int& iOut );
bool FileRead( RageFileBasic& f, unsigned& uOut );
bool FileRead( RageFileBasic& f, float& fOut );
void FileWrite( RageFileBasic& f, const RString& sWrite );
void FileWrite( RageFileBasic& f, int iWrite );
void FileWrite( RageFileBasic& f, size_t uWrite );
void FileWrite( RageFileBasic& f, float fWrite );
bool FileCopy( const RString &sSrcFile, const RString &sDstFile );
bool FileCopy( RageFileBasic &in, RageFileBasic &out, RString &sError, bool *bReadError = NULL );