mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
No dragons here.
This commit is contained in:
parent
192493a2c3
commit
3aeea69eba
@ -408,8 +408,6 @@ void View::InsertZone( Event* zone, Event* parent, Vector<Event*>& vec )
|
|||||||
|
|
||||||
if( zone->end == -1 )
|
if( zone->end == -1 )
|
||||||
{
|
{
|
||||||
// here be dragons
|
|
||||||
// this code is not tested, as it's a fallback for edge cases, which haven't happened
|
|
||||||
for( auto zit = it; zit != vec.end(); ++zit )
|
for( auto zit = it; zit != vec.end(); ++zit )
|
||||||
{
|
{
|
||||||
(*zit)->parent = zone;
|
(*zit)->parent = zone;
|
||||||
@ -505,7 +503,6 @@ int64_t View::GetZoneEnd( const Event& ev ) const
|
|||||||
|
|
||||||
Vector<Event*>& View::GetParentVector( const Event& ev )
|
Vector<Event*>& View::GetParentVector( const Event& ev )
|
||||||
{
|
{
|
||||||
// here be dragons
|
|
||||||
if( ev.parent )
|
if( ev.parent )
|
||||||
{
|
{
|
||||||
return ev.parent->child;
|
return ev.parent->child;
|
||||||
|
Loading…
Reference in New Issue
Block a user