diff --git a/stepmania/src/RageFile.cpp b/stepmania/src/RageFile.cpp index 5b4596ab94..a9c0c6f569 100644 --- a/stepmania/src/RageFile.cpp +++ b/stepmania/src/RageFile.cpp @@ -308,20 +308,6 @@ int RageFile::GetFileSize() const return iRet; } -void RageFile::Rewind() -{ - if( !IsOpen() ) - RageException::Throw("\"%s\" is not open.", GetPath().c_str()); - - if( !(m_Mode&READ) ) - RageException::Throw("\"%s\" is not open for reading; can't Rewind", GetPath().c_str()); - - m_EOF = false; - - m_FilePos = 0; - m_File->Rewind(); -} - int RageFile::Read( CString &buffer, int bytes ) { buffer.erase( buffer.begin(), buffer.end() ); diff --git a/stepmania/src/RageFile.h b/stepmania/src/RageFile.h index 05e27ebb6a..d2feb04474 100644 --- a/stepmania/src/RageFile.h +++ b/stepmania/src/RageFile.h @@ -51,7 +51,6 @@ public: int Tell() const { return m_FilePos; } int Seek( int offset ); int GetFileSize() const; - void Rewind(); /* Raw I/O: */ int Read( void *buffer, size_t bytes );