Removed filename member var from demofile

This commit is contained in:
Jordan Cristiano 2015-05-03 20:18:41 -04:00
parent ad81ecc67d
commit b3bab786c8
2 changed files with 1 additions and 4 deletions

View File

@ -176,7 +176,7 @@ bool CDemoFile::Open( const char *name )
if ( strcmp ( m_DemoHeader.demofilestamp, DEMO_HEADER_ID ) ) if ( strcmp ( m_DemoHeader.demofilestamp, DEMO_HEADER_ID ) )
{ {
fprintf( stderr, "CDemoFile::Open: %s has invalid demo header ID.\n", m_szFileName.c_str() ); fprintf(stderr, "CDemoFile::Open: %s has invalid demo header ID.\n", name);
fclose( fp ); fclose( fp );
return false; return false;
} }
@ -211,13 +211,11 @@ bool CDemoFile::Open( const char *name )
} }
m_fileBufferPos = 0; m_fileBufferPos = 0;
m_szFileName = name;
return true; return true;
} }
void CDemoFile::Close() void CDemoFile::Close()
{ {
m_szFileName.clear();
m_signOnData.clear(); m_signOnData.clear();
m_fileBuffer.clear(); m_fileBuffer.clear();

View File

@ -246,7 +246,6 @@ public:
private: private:
demoheader_t m_DemoHeader; //general demo info demoheader_t m_DemoHeader; //general demo info
std::string m_szFileName;
std::string m_signOnData; std::string m_signOnData;
std::string m_fileBuffer; std::string m_fileBuffer;