QmlProfiler: Remove some dead code

Change-Id: I2efd48a4dc13cc3996eda994eb4a046c101ad3e9
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-09-11 13:43:23 +02:00
parent fe2d9e2a3b
commit 89f1c0bf53
5 changed files with 5 additions and 39 deletions

View File

@@ -311,12 +311,6 @@ void QmlProfilerClientManager::qmlComplete(qint64 maximumTime)
d->modelManager->acquiringDone();
}
void QmlProfilerClientManager::stopClientsRecording()
{
if (d->qmlclientplugin)
d->qmlclientplugin.data()->setRecording(false);
}
void QmlProfilerClientManager::registerProfilerStateManager( QmlProfilerStateManager *profilerState )
{
if (d->profilerState) {
@@ -342,10 +336,12 @@ void QmlProfilerClientManager::profilerStateChanged()
QTC_ASSERT(d->profilerState, return);
switch (d->profilerState->currentState()) {
case QmlProfilerStateManager::AppStopRequested :
if (d->profilerState->serverRecording())
stopClientsRecording();
else
if (d->profilerState->serverRecording()) {
if (d->qmlclientplugin)
d->qmlclientplugin.data()->setRecording(false);
} else {
d->profilerState->setCurrentState(QmlProfilerStateManager::AppReadyToStop);
}
break;
default:
break;