forked from qt-creator/qt-creator
Valgrind: Remove unused function.
Change-Id: Ia14634a95e8227b65719052482dec9e9fd456877 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -137,33 +137,5 @@ void MemcheckRunControl::status(const Status &status)
|
|||||||
m_progress->setProgressValue(status.state() + 1);
|
m_progress->setProgressValue(status.state() + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemcheckRunControl::receiveLogMessage(const QByteArray &b)
|
|
||||||
{
|
|
||||||
QString error = QString::fromLocal8Bit(b);
|
|
||||||
// workaround https://bugs.kde.org/show_bug.cgi?id=255888
|
|
||||||
error.remove(QRegExp(QLatin1String("==*== </valgrindoutput>"), Qt::CaseSensitive, QRegExp::Wildcard));
|
|
||||||
|
|
||||||
error = error.trimmed();
|
|
||||||
|
|
||||||
if (error.isEmpty())
|
|
||||||
return;
|
|
||||||
|
|
||||||
stopEngine();
|
|
||||||
|
|
||||||
QString file;
|
|
||||||
int line = -1;
|
|
||||||
|
|
||||||
QRegExp suppressionError(QLatin1String("in suppressions file \"([^\"]+)\" near line (\\d+)"),
|
|
||||||
Qt::CaseSensitive, QRegExp::RegExp2);
|
|
||||||
if (suppressionError.indexIn(error) != -1) {
|
|
||||||
file = suppressionError.cap(1);
|
|
||||||
line = suppressionError.cap(2).toInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
TaskHub::addTask(Task(Task::Error, error, Utils::FileName::fromUserInput(file), line,
|
|
||||||
Analyzer::Constants::ANALYZERTASK_ID));
|
|
||||||
TaskHub::requestPopup();
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Valgrind
|
} // namespace Valgrind
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ protected:
|
|||||||
virtual ValgrindRunner *runner();
|
virtual ValgrindRunner *runner();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void receiveLogMessage(const QByteArray &);
|
|
||||||
void status(const Valgrind::XmlProtocol::Status &status);
|
void status(const Valgrind::XmlProtocol::Status &status);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user