diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-08-06 13:58:53 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-08-17 08:32:51 +0300 |
commit | 565712d84b2c7f108beb98c9f0409a41b626c14f (patch) | |
tree | 616b2d626f7c30d92d46553d8a76fbcce1707bb2 | |
parent | 828b61e941fb2247c49c846103f7be5c7c5cbb0a (diff) | |
download | qt-creator-565712d84b2c7f108beb98c9f0409a41b626c14f.tar.gz |
Remove useless code
Introduced with 4fbc020ddc8d353aba8c2c3c79223eaf09be573e
Change-Id: I28b6b7ea0cfdcc670e83e1114c546d00231a7027
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
-rw-r--r-- | plugins/autotest/testcodeparser.cpp | 11 | ||||
-rw-r--r-- | plugins/autotest/testcodeparser.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/plugins/autotest/testcodeparser.cpp b/plugins/autotest/testcodeparser.cpp index 337643af6e..d0779f6730 100644 --- a/plugins/autotest/testcodeparser.cpp +++ b/plugins/autotest/testcodeparser.cpp @@ -59,7 +59,6 @@ TestCodeParser::TestCodeParser(TestTreeModel *parent) m_fullUpdatePostponed(false), m_partialUpdatePostponed(false), m_dirty(false), - m_waitForParseTaskFinish(false), m_singleShotScheduled(false), m_parserState(Disabled) { @@ -549,7 +548,6 @@ void TestCodeParser::onQmlDocumentUpdated(const QmlJS::Document::Ptr &document) void TestCodeParser::onStartupProjectChanged(ProjectExplorer::Project *) { if (m_parserState == FullParse || m_parserState == PartialParse) { - m_waitForParseTaskFinish = true; Core::ProgressManager::instance()->cancelTasks(Constants::TASK_PARSE); } else { clearCache(); @@ -712,8 +710,6 @@ void TestCodeParser::onTaskStarted(Core::Id type) { if (type == CppTools::Constants::TASK_INDEX) m_codeModelParsing = true; - else if (type == Constants::TASK_PARSE) - m_waitForParseTaskFinish = true; } void TestCodeParser::onAllTasksFinished(Core::Id type) @@ -723,13 +719,6 @@ void TestCodeParser::onAllTasksFinished(Core::Id type) return; 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 setState(Idle); } diff --git a/plugins/autotest/testcodeparser.h b/plugins/autotest/testcodeparser.h index a492990f9b..5bb54d9320 100644 --- a/plugins/autotest/testcodeparser.h +++ b/plugins/autotest/testcodeparser.h @@ -116,7 +116,6 @@ private: bool m_fullUpdatePostponed; bool m_partialUpdatePostponed; bool m_dirty; - bool m_waitForParseTaskFinish; bool m_singleShotScheduled; QSet<QString> m_postponedFiles; State m_parserState; |