ClangTools: Remove dead code

Change-Id: I5db111402902e81099489dc5ab4b0b929c574969
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Nikolai Kosjar
2018-06-05 10:48:56 +02:00
parent f19e28d95c
commit bb6c02a443
3 changed files with 4 additions and 19 deletions

View File

@@ -387,7 +387,7 @@ void ClangToolRunControl::analyzeNextFile()
void ClangToolRunControl::onRunnerFinishedWithSuccess(const QString &filePath)
{
const QString logFilePath = qobject_cast<ClangToolRunner *>(sender())->actualLogFile();
const QString logFilePath = qobject_cast<ClangToolRunner *>(sender())->logFilePath();
qCDebug(LOG) << "onRunnerFinishedWithSuccess:" << logFilePath;
QString errorMessage;
@@ -415,7 +415,7 @@ void ClangToolRunControl::onRunnerFinishedWithFailure(const QString &errorMessag
<< errorMessage << '\n' << errorDetails;
// Even in the error case the log file was created, so clean it up here, too.
QFile::remove(qobject_cast<ClangToolRunner *>(sender())->actualLogFile());
QFile::remove(qobject_cast<ClangToolRunner *>(sender())->logFilePath());
++m_filesNotAnalyzed;
m_success = false;