From 9dac95882f21afb77f4019fb1a7ec54e66a880bd Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 18 Nov 2024 13:47:39 +0100 Subject: [PATCH] QmlProfiler: Remove unused method Task-number: QTCREATORBUG-29168 Change-Id: I4ab8b33fefcfd55cf4e56118311e9cac0d274862 Reviewed-by: Ulf Hermann --- .../qmlprofiler/qmlprofilerruncontrol.cpp | 18 ------------------ .../qmlprofiler/qmlprofilerruncontrol.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp index 9d17fb49797..2f7bfb488ff 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp @@ -96,24 +96,6 @@ void QmlProfilerRunner::stop() } } -void QmlProfilerRunner::notifyRemoteFinished() -{ - QTC_ASSERT(d->m_profilerState, return); - - switch (d->m_profilerState->currentState()) { - case QmlProfilerStateManager::AppRunning: - d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppDying); - break; - case QmlProfilerStateManager::Idle: - break; - default: - const QString message = QString::fromLatin1("Process died unexpectedly from state %1 in %2:%3") - .arg(d->m_profilerState->currentStateAsString(), QString::fromLatin1(__FILE__), QString::number(__LINE__)); - qWarning("%s", qPrintable(message)); - break; - } -} - void QmlProfilerRunner::cancelProcess() { QTC_ASSERT(d->m_profilerState, return); diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrol.h b/src/plugins/qmlprofiler/qmlprofilerruncontrol.h index 8864885ee2f..424d8e1afc4 100644 --- a/src/plugins/qmlprofiler/qmlprofilerruncontrol.h +++ b/src/plugins/qmlprofiler/qmlprofilerruncontrol.h @@ -25,9 +25,7 @@ public: ~QmlProfilerRunner() override; void registerProfilerStateManager( QmlProfilerStateManager *profilerState ); - void cancelProcess(); - void notifyRemoteFinished(); private: void start() override;