forked from qt-creator/qt-creator
QmlProfiler: Remove some dead code
Change-Id: I2efd48a4dc13cc3996eda994eb4a046c101ad3e9 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user