Removed unsupported functionality
authorKurt Pattyn <pattyn.kurt@gmail.com>
Sat, 25 Jan 2014 13:44:50 +0000 (14:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 1 Feb 2014 14:36:18 +0000 (15:36 +0100)
Removed subprotocol and extension getter functionality, as this
is currently not supported by QtWebSockets. I left the backend
implementation intact (in the _p files), for future reference.

Change-Id: Ia00739f6f225cd557ceb10b40c83fc81d98aae0b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsocket.cpp
src/websockets/qwebsocket.h
src/websockets/qwebsocketserver.cpp
src/websockets/qwebsocketserver.h

index c08aed3..40b9da1 100644 (file)
@@ -509,24 +509,6 @@ QString QWebSocket::origin() const
 }
 
 /*!
-    \brief Returns the currently used protocol.
- */
-QString QWebSocket::protocol() const
-{
-    Q_D(const QWebSocket);
-    return d->protocol();
-}
-
-/*!
-    \brief Returns the currently used extension.
- */
-QString QWebSocket::extension() const
-{
-    Q_D(const QWebSocket);
-    return d->extension();
-}
-
-/*!
     \brief Returns the code indicating why the socket was closed.
     \sa QWebSocketProtocol::CloseCode, closeReason()
  */
index 7f4131e..757cf36 100644 (file)
@@ -99,8 +99,6 @@ public:
     QString resourceName() const;
     QUrl requestUrl() const;
     QString origin() const;
-    QString protocol() const;
-    QString extension() const;
     QWebSocketProtocol::CloseCode closeCode() const;
     QString closeReason() const;
 
index f2ae3d5..e52a539 100644 (file)
@@ -535,22 +535,4 @@ QList<QWebSocketProtocol::Version> QWebSocketServer::supportedVersions() const
     return d->supportedVersions();
 }
 
-/*!
-  Returns a list of websocket subprotocols that this server supports.
- */
-QStringList QWebSocketServer::supportedProtocols() const
-{
-    Q_D(const QWebSocketServer);
-    return d->supportedProtocols();
-}
-
-/*!
-  Returns a list of websocket extensions that this server supports.
- */
-QStringList QWebSocketServer::supportedExtensions() const
-{
-    Q_D(const QWebSocketServer);
-    return d->supportedExtensions();
-}
-
 QT_END_NAMESPACE
index 59472fe..630a42d 100644 (file)
@@ -118,8 +118,6 @@ public:
 #endif
 
     QList<QWebSocketProtocol::Version> supportedVersions() const;
-    QStringList supportedProtocols() const;
-    QStringList supportedExtensions() const;
 
 Q_SIGNALS:
     void acceptError(QAbstractSocket::SocketError socketError);