diff --git a/src/qgcunittest/MultiSignalSpy.cc b/src/qgcunittest/MultiSignalSpy.cc index 1c74d8d4eb660e03c2608b391c13f9c8e90c72a7..bb3b2613307891c80b272fc76272f477bdc50695 100644 --- a/src/qgcunittest/MultiSignalSpy.cc +++ b/src/qgcunittest/MultiSignalSpy.cc @@ -58,10 +58,6 @@ bool MultiSignalSpy::init(QObject* signalEmitter, ///< [in] object whi Q_ASSERT(_rgSpys != nullptr); for (size_t i=0; i<_cSignals; i++) { _rgSpys[i] = new QSignalSpy(_signalEmitter, _rgSignals[i]); - if (_rgSpys[i] == nullptr) { - qDebug() << "Unabled to allocated QSignalSpy"; - return false; - } if (!_rgSpys[i]->isValid()) { qDebug() << "Invalid signal"; return false;