forked from qt-creator/qt-creator
RunWorker: Remove recordData() / recordedData() methods
Since there is no more usages of recordedData() - get rid of it. Thus storing any data without using them doesn't make sense. Change-Id: I1b527d22cc8a53b4f8df960ba9fd3d3436d7b822 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -26,10 +26,7 @@ public:
|
||||
auto worker = runControl->createWorker(runnerIdForRunMode(runControl->runMode()));
|
||||
worker->addStartDependency(this);
|
||||
|
||||
connect(runner, &AndroidRunner::qmlServerReady, this, [this, worker](const QUrl &server) {
|
||||
worker->recordData("QmlServerUrl", server);
|
||||
reportStarted();
|
||||
});
|
||||
connect(runner, &AndroidRunner::qmlServerReady, this, &RunWorker::reportStarted);
|
||||
}
|
||||
|
||||
private:
|
||||
|
@@ -735,7 +735,6 @@ void IosQmlProfilerSupport::start()
|
||||
|
||||
Port qmlPort = m_runner->qmlServerPort();
|
||||
serverUrl.setPort(qmlPort.number());
|
||||
m_profiler->recordData("QmlServerUrl", serverUrl);
|
||||
if (qmlPort.isValid())
|
||||
reportStarted();
|
||||
else
|
||||
|
@@ -235,7 +235,6 @@ public:
|
||||
QList<RunWorker *> stopDependencies;
|
||||
QString id;
|
||||
|
||||
Store data;
|
||||
bool supportsReRunning = true;
|
||||
bool essential = false;
|
||||
};
|
||||
@@ -1951,16 +1950,6 @@ void RunWorker::setId(const QString &id)
|
||||
d->id = id;
|
||||
}
|
||||
|
||||
void RunWorker::recordData(const Key &channel, const QVariant &data)
|
||||
{
|
||||
d->data[channel] = data;
|
||||
}
|
||||
|
||||
QVariant RunWorker::recordedData(const Key &channel) const
|
||||
{
|
||||
return d->data[channel];
|
||||
}
|
||||
|
||||
void RunWorker::setSupportsReRunning(bool reRunningSupported)
|
||||
{
|
||||
d->supportsReRunning = reRunningSupported;
|
||||
|
@@ -56,9 +56,6 @@ public:
|
||||
|
||||
void setId(const QString &id);
|
||||
|
||||
void recordData(const Utils::Key &channel, const QVariant &data);
|
||||
QVariant recordedData(const Utils::Key &channel) const;
|
||||
|
||||
// Part of read-only interface of RunControl for convenience.
|
||||
void appendMessage(const QString &msg, Utils::OutputFormat format, bool appendNewLine = true);
|
||||
IDeviceConstPtr device() const;
|
||||
|
@@ -277,7 +277,6 @@ public:
|
||||
private:
|
||||
void start() final
|
||||
{
|
||||
m_worker->recordData("QmlServerUrl", qmlChannel());
|
||||
reportStarted();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user