Remove dead code.

This commit is contained in:
Bartosz Taudul 2017-10-22 15:40:56 +02:00
parent 7345ca5aa6
commit b72d4b05de
2 changed files with 0 additions and 20 deletions

View File

@ -1169,25 +1169,6 @@ int64_t View::GetZoneEnd( const ZoneEvent& ev ) const
}
}
Vector<ZoneEvent*>& View::GetParentVector( const ZoneEvent& ev )
{
if( ev.parent )
{
return ev.parent->child;
}
else
{
for( auto& t : m_threads )
{
auto it = std::lower_bound( t->timeline.begin(), t->timeline.end(), ev.start, [] ( const auto& l, const auto& r ) { return l->start < r; } );
if( it != t->timeline.end() && *it == &ev ) return t->timeline;
}
assert( false );
static Vector<ZoneEvent*> empty;
return empty;
}
}
const char* View::TimeToString( int64_t ns ) const
{
enum { Pool = 8 };

View File

@ -168,7 +168,6 @@ private:
uint64_t GetFrameEnd( size_t idx ) const;
int64_t GetLastTime() const;
int64_t GetZoneEnd( const ZoneEvent& ev ) const;
Vector<ZoneEvent*>& GetParentVector( const ZoneEvent& ev );
const char* TimeToString( int64_t ns ) const;
const char* RealToString( double val, bool separator ) const;
const char* GetString( uint64_t ptr ) const;