Remove qWarning statements
authorKurt Pattyn <pattyn.kurt@gmail.com>
Sun, 2 Feb 2014 17:39:30 +0000 (18:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 2 Feb 2014 17:41:26 +0000 (18:41 +0100)
Change-Id: I7132b8c9b15f625345ef092be3bc0ea466a12f8e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsocketserver_p.cpp

index c7f39a9..cd0a81d 100644 (file)
@@ -328,8 +328,6 @@ void QWebSocketServerPrivate::setSslConfiguration(const QSslConfiguration &sslCo
 {
     if (m_secureMode == SecureMode)
         qobject_cast<QSslServer *>(m_pTcpServer)->setSslConfiguration(sslConfiguration);
-    else
-        qWarning() << tr("Cannot set SSL configuration for non-secure server.");
 }
 
 QSslConfiguration QWebSocketServerPrivate::sslConfiguration() const
@@ -386,8 +384,6 @@ void QWebSocketServerPrivate::handshakeReceived()
 
         if (m_pendingConnections.length() >= maxPendingConnections()) {
             pTcpSocket->close();
-            qWarning() <<
-                tr("Too many pending connections: new websocket connection not accepted.");
             setError(QWebSocketProtocol::CloseCodeAbnormalDisconnection,
                      tr("Too many pending connections."));
             return;