diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index fabdca125a..2b7dbfaf96 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -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) ) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index a8f50fd8d4..810d6d00c4 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -568,17 +568,7 @@ namespace StringConversion template<> inline RString ToString( 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 );