From 9e450e2d7ad343248150c6ac4ec21dc2ae9f0ec6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 24 Oct 2002 07:19:57 +0000 Subject: [PATCH] remove unused file utils --- stepmania/src/RageUtil.cpp | 50 -------------------------------------- stepmania/src/RageUtil.h | 9 ------- 2 files changed, 59 deletions(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index c3bc64e70a..199b7fbce4 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -748,56 +748,6 @@ HINSTANCE GotoURL(const char *url) return result; } -void WriteStringToFile( FILE* file, CString s ) -{ - if( s == "" ) - s = "_"; - fprintf( file, "%s\n", s ); -} - -void ReadStringFromFile( FILE* file, CString& s ) -{ - char szTemp[MAX_PATH]; - fscanf( file, "%[^\n]\n", szTemp ); - s = szTemp; - if( s == "_" ) - s = ""; -} - - -void WriteIntToFile( FILE* file, int i ) -{ - fprintf( file, "%d\n", i ); -} - -void ReadIntFromFile( FILE* file, int& i ) -{ - fscanf( file, "%d\n", &i ); -} - - -void WriteFloatToFile( FILE* file, float f ) -{ - fprintf( file, "%f\n", f ); -} - -void ReadFloatFromFile( FILE* file, float& f ) -{ - fscanf( file, "%f\n", &f ); -} - - - -void WriteUlongToFile( FILE* file, ULONG u ) -{ - fprintf( file, "%u\n", u ); -} - -void ReadUlongFromFile( FILE* file, ULONG& u ) -{ - fscanf( file, "%u\n", &u ); -} - float calc_mean(const float *start, const float *end) { return accumulate(start, end, 0.f) / distance(start, end); diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 0be8958a92..2c149b6fbf 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -180,15 +180,6 @@ void SortCStringArray( CStringArray &AddTo, const bool bSortAcsending = true ); LONG GetRegKey(HKEY key, const char *subkey, LPTSTR retdata); HINSTANCE GotoURL(const char *url); -void WriteStringToFile( FILE* file, CString s ); -void ReadStringFromFile( FILE* file, CString& s ); -void WriteIntToFile( FILE* file, int i ); -void ReadIntFromFile( FILE* file, int& i ); -void WriteFloatToFile( FILE* file, float f ); -void ReadFloatFromFile( FILE* file, float& f ); -void WriteUlongToFile( FILE* file, ULONG u ); -void ReadUlongFromFile( FILE* file, ULONG& u ); - /* Find the mean and standard deviation of all numbers in [start,end). */ float calc_mean(const float *start, const float *end); float calc_stddev(const float *start, const float *end);