Skip to content

Commit d94cf8f

Browse files
committed
selfcheck
1 parent 142fac9 commit d94cf8f

3 files changed

Lines changed: 0 additions & 20 deletions

File tree

gui/projectfile.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ class ProjectFile : public QObject {
189189
return mPlatform;
190190
}
191191

192-
const QString& getProjectName() const {
193-
return mProjectName;
194-
}
195-
196192
void setProjectName(QString projectName) {
197193
mProjectName = std::move(projectName);
198194
}

gui/resultsview.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ void ResultsView::clear(bool results)
134134
mUI->mProgress->setFormat("%p%");
135135

136136
mUI->mLabelCriticalErrors->setVisible(false);
137-
138-
mSuccess = false;
139137
}
140138

141139
void ResultsView::clear(const QString &filename)
@@ -319,7 +317,6 @@ void ResultsView::setCheckSettings(const Settings &settings)
319317

320318
void ResultsView::checkingStarted(int count)
321319
{
322-
mSuccess = true;
323320
mUI->mProgress->setVisible(true);
324321
mUI->mProgress->setMaximum(PROGRESS_MAX);
325322
mUI->mProgress->setValue(0);
@@ -394,8 +391,6 @@ void ResultsView::translate()
394391

395392
void ResultsView::readErrorsXml(const QString &filename)
396393
{
397-
mSuccess = false; // Don't know if results come from an aborted analysis
398-
399394
const int version = XmlReport::determineVersion(filename);
400395
if (version == 0) {
401396
QMessageBox msgBox;
@@ -545,7 +540,6 @@ void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos)
545540

546541
void ResultsView::stopAnalysis()
547542
{
548-
mSuccess = false;
549543
mUI->mLabelCriticalErrors->setText(tr("Analysis was stopped"));
550544
mUI->mLabelCriticalErrors->setVisible(true);
551545
}
@@ -568,10 +562,5 @@ void ResultsView::handleCriticalError(const ErrorItem &item)
568562
msg += ". " + tr("Analysis was aborted.");
569563
mUI->mLabelCriticalErrors->setText(msg);
570564
mUI->mLabelCriticalErrors->setVisible(true);
571-
mSuccess = false;
572565
}
573566
}
574-
575-
bool ResultsView::isSuccess() const {
576-
return mSuccess;
577-
}

gui/resultsview.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,6 @@ public slots:
388388

389389
Settings* mCheckSettings = nullptr;
390390

391-
/**
392-
* Set to true when checking finish successfully. Set to false whenever analysis starts.
393-
*/
394-
bool mSuccess = false;
395-
396391
/** Critical error ids */
397392
QString mCriticalErrors;
398393

0 commit comments

Comments
 (0)