forked from qt-creator/qt-creator
Remove useless code
Introduced with 4fbc020ddc
Change-Id: I28b6b7ea0cfdcc670e83e1114c546d00231a7027
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -59,7 +59,6 @@ TestCodeParser::TestCodeParser(TestTreeModel *parent)
|
|||||||
m_fullUpdatePostponed(false),
|
m_fullUpdatePostponed(false),
|
||||||
m_partialUpdatePostponed(false),
|
m_partialUpdatePostponed(false),
|
||||||
m_dirty(false),
|
m_dirty(false),
|
||||||
m_waitForParseTaskFinish(false),
|
|
||||||
m_singleShotScheduled(false),
|
m_singleShotScheduled(false),
|
||||||
m_parserState(Disabled)
|
m_parserState(Disabled)
|
||||||
{
|
{
|
||||||
@@ -549,7 +548,6 @@ void TestCodeParser::onQmlDocumentUpdated(const QmlJS::Document::Ptr &document)
|
|||||||
void TestCodeParser::onStartupProjectChanged(ProjectExplorer::Project *)
|
void TestCodeParser::onStartupProjectChanged(ProjectExplorer::Project *)
|
||||||
{
|
{
|
||||||
if (m_parserState == FullParse || m_parserState == PartialParse) {
|
if (m_parserState == FullParse || m_parserState == PartialParse) {
|
||||||
m_waitForParseTaskFinish = true;
|
|
||||||
Core::ProgressManager::instance()->cancelTasks(Constants::TASK_PARSE);
|
Core::ProgressManager::instance()->cancelTasks(Constants::TASK_PARSE);
|
||||||
} else {
|
} else {
|
||||||
clearCache();
|
clearCache();
|
||||||
@@ -712,8 +710,6 @@ void TestCodeParser::onTaskStarted(Core::Id type)
|
|||||||
{
|
{
|
||||||
if (type == CppTools::Constants::TASK_INDEX)
|
if (type == CppTools::Constants::TASK_INDEX)
|
||||||
m_codeModelParsing = true;
|
m_codeModelParsing = true;
|
||||||
else if (type == Constants::TASK_PARSE)
|
|
||||||
m_waitForParseTaskFinish = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestCodeParser::onAllTasksFinished(Core::Id type)
|
void TestCodeParser::onAllTasksFinished(Core::Id type)
|
||||||
@@ -723,13 +719,6 @@ void TestCodeParser::onAllTasksFinished(Core::Id type)
|
|||||||
return;
|
return;
|
||||||
m_codeModelParsing = false;
|
m_codeModelParsing = false;
|
||||||
|
|
||||||
if (m_waitForParseTaskFinish && type == Constants::TASK_PARSE) {
|
|
||||||
m_waitForParseTaskFinish = false;
|
|
||||||
clearCache();
|
|
||||||
emitUpdateTestTree();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// avoid illegal parser state if respective widgets became hidden while parsing
|
// avoid illegal parser state if respective widgets became hidden while parsing
|
||||||
setState(Idle);
|
setState(Idle);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ private:
|
|||||||
bool m_fullUpdatePostponed;
|
bool m_fullUpdatePostponed;
|
||||||
bool m_partialUpdatePostponed;
|
bool m_partialUpdatePostponed;
|
||||||
bool m_dirty;
|
bool m_dirty;
|
||||||
bool m_waitForParseTaskFinish;
|
|
||||||
bool m_singleShotScheduled;
|
bool m_singleShotScheduled;
|
||||||
QSet<QString> m_postponedFiles;
|
QSet<QString> m_postponedFiles;
|
||||||
State m_parserState;
|
State m_parserState;
|
||||||
|
|||||||
Reference in New Issue
Block a user