Fixed unused function warning in qsslcertificate test.

Change-Id: I4d402e486a8ceb965d008056f5f1bcb227f6f40c
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
This commit is contained in:
Mitch Curtis 2012-05-18 17:02:54 +02:00 committed by Qt by Nokia
parent c47f220f1a
commit 083af3c319

View File

@ -164,6 +164,8 @@ void tst_QSslCertificate::cleanupTestCase()
} }
} }
#ifndef QT_NO_SSL
static QByteArray readFile(const QString &absFilePath) static QByteArray readFile(const QString &absFilePath)
{ {
QFile file(absFilePath); QFile file(absFilePath);
@ -174,8 +176,6 @@ static QByteArray readFile(const QString &absFilePath)
return file.readAll(); return file.readAll();
} }
#ifndef QT_NO_SSL
void tst_QSslCertificate::emptyConstructor() void tst_QSslCertificate::emptyConstructor()
{ {
if (!QSslSocket::supportsSsl()) if (!QSslSocket::supportsSsl())