forked from qt-creator/qt-creator
Valgrind: Remove MemcheckRunner::localHostAddressRetrieved() etc
It was only ever used to run second valgrindProcess()->setValgrindArguments (fullValgrindArguments()) in the memcheck tool which was already done in ValgrindRunner::start() Change-Id: I95a6005e2131eea25215f17cd0e7244a3d8df12e Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -172,11 +172,5 @@ QStringList MemcheckRunner::memcheckLogArguments() const
|
||||
return arguments;
|
||||
}
|
||||
|
||||
void MemcheckRunner::localHostAddressRetrieved(const QHostAddress &localHostAddress)
|
||||
{
|
||||
Q_UNUSED(localHostAddress);
|
||||
valgrindProcess()->setValgrindArguments(fullValgrindArguments());
|
||||
}
|
||||
|
||||
} // namespace Memcheck
|
||||
} // namespace Valgrind
|
||||
|
||||
@@ -53,8 +53,6 @@ signals:
|
||||
void logMessageReceived(const QByteArray &);
|
||||
|
||||
private slots:
|
||||
void localHostAddressRetrieved(const QHostAddress &localHostAddress);
|
||||
|
||||
void xmlSocketConnected();
|
||||
void logSocketConnected();
|
||||
void readLogSocket();
|
||||
|
||||
@@ -205,8 +205,6 @@ void ValgrindProcess::connected()
|
||||
{
|
||||
QTC_ASSERT(m_remote.m_connection->state() == QSsh::SshConnection::Connected, return);
|
||||
|
||||
emit localHostAddressRetrieved(m_remote.m_connection->connectionInfo().localAddress);
|
||||
|
||||
// connected, run command
|
||||
QString cmd;
|
||||
|
||||
|
||||
@@ -75,7 +75,6 @@ signals:
|
||||
void finished(int, QProcess::ExitStatus);
|
||||
void error(QProcess::ProcessError);
|
||||
void processOutput(const QString &, Utils::OutputFormat format);
|
||||
void localHostAddressRetrieved(const QHostAddress &localHostAddress);
|
||||
|
||||
private:
|
||||
void handleRemoteStderr();
|
||||
|
||||
@@ -147,8 +147,6 @@ bool ValgrindRunner::start()
|
||||
this, &ValgrindRunner::processFinished);
|
||||
QObject::connect(d->process, &ValgrindProcess::error,
|
||||
this, &ValgrindRunner::processError);
|
||||
QObject::connect(d->process, &ValgrindProcess::localHostAddressRetrieved,
|
||||
this, &ValgrindRunner::localHostAddressRetrieved);
|
||||
|
||||
d->process->run();
|
||||
return true;
|
||||
@@ -180,11 +178,6 @@ void ValgrindRunner::processFinished(int ret, QProcess::ExitStatus status)
|
||||
emit processErrorReceived(errorString(), d->process->processError());
|
||||
}
|
||||
|
||||
void ValgrindRunner::localHostAddressRetrieved(const QHostAddress &localHostAddress)
|
||||
{
|
||||
Q_UNUSED(localHostAddress);
|
||||
}
|
||||
|
||||
QString ValgrindRunner::errorString() const
|
||||
{
|
||||
if (d->process)
|
||||
|
||||
@@ -80,7 +80,6 @@ signals:
|
||||
protected slots:
|
||||
virtual void processError(QProcess::ProcessError);
|
||||
virtual void processFinished(int, QProcess::ExitStatus);
|
||||
virtual void localHostAddressRetrieved(const QHostAddress &localHostAddress);
|
||||
|
||||
private:
|
||||
class Private;
|
||||
|
||||
Reference in New Issue
Block a user