From 6a3ec1928c4fc956abd0583ab39b42f193842db4 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 6 Jun 2019 13:11:28 +0200 Subject: [PATCH] CMake: Remove needless tests These tests were done just before calling these methods. Change-Id: If9801609ff8b1c18d8cc6b446e80a998abc2a5cf Reviewed-by: hjk --- src/plugins/cmakeprojectmanager/cmakeproject.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 1182b9699ef..da349f8e1c5 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -548,9 +548,6 @@ void CMakeProject::handleParsingSuccess(CMakeBuildConfiguration *bc) { QTC_ASSERT(m_waitingForParse, return); - if (!bc || !bc->isActive()) - return; - m_waitingForParse = false; m_combinedScanAndParseResult = m_combinedScanAndParseResult && true; @@ -561,9 +558,6 @@ void CMakeProject::handleParsingError(CMakeBuildConfiguration *bc) { QTC_CHECK(m_waitingForParse); - if (!bc || !bc->isActive()) - return; - m_waitingForParse = false; m_combinedScanAndParseResult = false;