forked from qt-creator/qt-creator
Qnx: Remove unused commandFound() method
Task-number: QTCREATORBUG-29168 Change-Id: Ifad415adfcfa06f6152d39112e576bdc18487a6b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -38,10 +38,6 @@ void Slog2InfoRunner::start()
|
||||
process.setCommand(CommandLine{device()->filePath("slog2info")});
|
||||
};
|
||||
const auto onTestDone = [this](DoneWith result) {
|
||||
if (result == DoneWith::Success) {
|
||||
m_found = true;
|
||||
return;
|
||||
}
|
||||
appendMessage(Tr::tr("Warning: \"slog2info\" is not found on the device, "
|
||||
"debug output not available."), ErrorMessageFormat);
|
||||
};
|
||||
@@ -51,7 +47,6 @@ void Slog2InfoRunner::start()
|
||||
};
|
||||
const auto onLaunchTimeDone = [this](const Process &process) {
|
||||
QTC_CHECK(!m_applicationId.isEmpty());
|
||||
QTC_CHECK(m_found);
|
||||
m_launchDateTime = QDateTime::fromString(process.cleanedStdOut().trimmed(), "dd HH:mm:ss");
|
||||
};
|
||||
|
||||
@@ -70,7 +65,7 @@ void Slog2InfoRunner::start()
|
||||
};
|
||||
|
||||
const Group root {
|
||||
ProcessTask(onTestSetup, onTestDone),
|
||||
ProcessTask(onTestSetup, onTestDone, CallDoneIf::Error),
|
||||
ProcessTask(onLaunchTimeSetup, onLaunchTimeDone, CallDoneIf::Success),
|
||||
ProcessTask(onLogSetup, onLogError, CallDoneIf::Error)
|
||||
};
|
||||
@@ -86,11 +81,6 @@ void Slog2InfoRunner::stop()
|
||||
reportStopped();
|
||||
}
|
||||
|
||||
bool Slog2InfoRunner::commandFound() const
|
||||
{
|
||||
return m_found;
|
||||
}
|
||||
|
||||
void Slog2InfoRunner::processRemainingLogData()
|
||||
{
|
||||
if (!m_remainingData.isEmpty())
|
||||
|
@@ -19,20 +19,15 @@ public:
|
||||
void start() override;
|
||||
void stop() override;
|
||||
|
||||
bool commandFound() const;
|
||||
|
||||
private:
|
||||
void processRemainingLogData();
|
||||
void processLogInput(const QString &input);
|
||||
void processLogLine(const QString &line);
|
||||
|
||||
QString m_applicationId;
|
||||
|
||||
QDateTime m_launchDateTime;
|
||||
bool m_found = false;
|
||||
bool m_currentLogs = false;
|
||||
QString m_remainingData;
|
||||
|
||||
Tasking::TaskTreeRunner m_taskTreeRunner;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user