Drop legacy code for reading long unsupported traces.

This commit is contained in:
Bartosz Taudul 2021-05-18 02:23:43 +02:00
parent 98551ab892
commit 5ec1313af1
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -24,26 +24,17 @@ void ThreadCompress::Load( FileRead& f, int fileVer )
assert( m_threadMap.empty() );
uint64_t sz;
if( fileVer >= FileVersion( 0, 4, 4 ) )
f.Read( sz );
if( sz != 0 )
{
f.Read( sz );
if( sz != 0 )
m_threadExpand.reserve_and_use( sz );
f.Read( m_threadExpand.data(), sizeof( uint64_t ) * sz );
m_threadMap.reserve( sz );
for( size_t i=0; i<sz; i++ )
{
m_threadExpand.reserve_and_use( sz );
f.Read( m_threadExpand.data(), sizeof( uint64_t ) * sz );
m_threadMap.reserve( sz );
for( size_t i=0; i<sz; i++ )
{
m_threadMap.emplace( m_threadExpand[i], i );
}
m_threadMap.emplace( m_threadExpand[i], i );
}
}
else
{
f.Read( sz );
m_threadExpand.reserve( sz );
m_threadExpand.push_back( 0 );
}
}
void ThreadCompress::Save( FileWrite& f ) const