From b72d4b05defc9cfa7f26f1dde1d2c80449eb69b2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 22 Oct 2017 15:40:56 +0200 Subject: [PATCH] Remove dead code. --- server/TracyView.cpp | 19 ------------------- server/TracyView.hpp | 1 - 2 files changed, 20 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 6c45105e..38311c8f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1169,25 +1169,6 @@ int64_t View::GetZoneEnd( const ZoneEvent& ev ) const } } -Vector& 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 empty; - return empty; - } -} - const char* View::TimeToString( int64_t ns ) const { enum { Pool = 8 }; diff --git a/server/TracyView.hpp b/server/TracyView.hpp index c6ff4a51..add1c3d8 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -168,7 +168,6 @@ private: uint64_t GetFrameEnd( size_t idx ) const; int64_t GetLastTime() const; int64_t GetZoneEnd( const ZoneEvent& ev ) const; - Vector& 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;