Skip to content

Commit

Permalink
remove unnecessary guards
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Jun 2, 2020
1 parent 3b86c51 commit 58d93ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/3d/chunks/qgschunkedentity_p.cpp
Expand Up @@ -402,8 +402,7 @@ void QgsChunkedEntity::startJobs()
delete entry;

QgsChunkQueueJob *job = startJob( node );
if ( job )
mActiveJobs.append( job );
mActiveJobs.append( job );
}
}

Expand All @@ -415,8 +414,6 @@ QgsChunkQueueJob *QgsChunkedEntity::startJob( QgsChunkNode *node )
QgsEventTracing::addEvent( QgsEventTracing::AsyncBegin, QStringLiteral( "3D" ), QStringLiteral( "Load " ) + node->tileId().text(), node->tileId().text() );

QgsChunkLoader *loader = mChunkLoaderFactory->createChunkLoader( node );
if ( !loader )
return nullptr;
connect( loader, &QgsChunkQueueJob::finished, this, &QgsChunkedEntity::onActiveJobFinished );
node->setLoading( loader );
return loader;
Expand Down

0 comments on commit 58d93ec

Please sign in to comment.