forked from qt-creator/qt-creator
CMake: Remove needless tests
These tests were done just before calling these methods. Change-Id: If9801609ff8b1c18d8cc6b446e80a998abc2a5cf Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -548,9 +548,6 @@ void CMakeProject::handleParsingSuccess(CMakeBuildConfiguration *bc)
|
|||||||
{
|
{
|
||||||
QTC_ASSERT(m_waitingForParse, return);
|
QTC_ASSERT(m_waitingForParse, return);
|
||||||
|
|
||||||
if (!bc || !bc->isActive())
|
|
||||||
return;
|
|
||||||
|
|
||||||
m_waitingForParse = false;
|
m_waitingForParse = false;
|
||||||
m_combinedScanAndParseResult = m_combinedScanAndParseResult && true;
|
m_combinedScanAndParseResult = m_combinedScanAndParseResult && true;
|
||||||
|
|
||||||
@@ -561,9 +558,6 @@ void CMakeProject::handleParsingError(CMakeBuildConfiguration *bc)
|
|||||||
{
|
{
|
||||||
QTC_CHECK(m_waitingForParse);
|
QTC_CHECK(m_waitingForParse);
|
||||||
|
|
||||||
if (!bc || !bc->isActive())
|
|
||||||
return;
|
|
||||||
|
|
||||||
m_waitingForParse = false;
|
m_waitingForParse = false;
|
||||||
m_combinedScanAndParseResult = false;
|
m_combinedScanAndParseResult = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user