diff --git a/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp b/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp index ad9554c7a5..5215204a5c 100644 --- a/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp +++ b/tests/auto/network/ssl/qsslsocket_onDemandCertificates_member/tst_qsslsocket_onDemandCertificates_member.cpp @@ -212,17 +212,6 @@ void tst_QSslSocket_onDemandCertificates_member::onDemandRootCertLoadingMemberMe { const QString host("www.qt.io"); -#if QT_DEPRECATED_SINCE(5, 5) - { - // not using any root certs -> should not work - QSslSocketPtr socket2 = newSocket(); - this->socket = socket2.data(); - socket2->setCaCertificates(QList()); - socket2->connectToHostEncrypted(host, 443); - QVERIFY(!waitForEncrypted(socket2.data())); - } -#endif - // not using any root certs -> should not work QSslSocketPtr socket2 = newSocket(); this->socket = socket2.data(); @@ -238,17 +227,6 @@ void tst_QSslSocket_onDemandCertificates_member::onDemandRootCertLoadingMemberMe socket->connectToHostEncrypted(host, 443); QVERIFY2(waitForEncrypted(socket.data()), qPrintable(socket->errorString())); -#if QT_DEPRECATED_SINCE(5, 5) - { - // not using any root certs again -> should not work - QSslSocketPtr socket3 = newSocket(); - this->socket = socket3.data(); - socket3->setCaCertificates(QList()); - socket3->connectToHostEncrypted(host, 443); - QVERIFY(!waitForEncrypted(socket3.data())); - } -#endif - // not using any root certs again -> should not work QSslSocketPtr socket3 = newSocket(); this->socket = socket3.data();