summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-26 17:30:32 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-01 16:19:28 +0100
commit11b5eca580900a677fdf9a5d6cd990b0700ad5ad (patch)
tree4e1da5bb697db9aff67152005b85f1cad2162057
parent595551b06d971fe6a01c08b0779b531d054c47f9 (diff)
downloadqtwebsockets-11b5eca580900a677fdf9a5d6cd990b0700ad5ad.tar.gz
Remove socketOption functionality
Removed the setSocketOption() and socketOption(0 methods as they are not really relevant for web sockets. Also, internally for the underlying real socket the LowDelayOption and KeepAliveOption are already set. If ever needed, these methods can be added later. Change-Id: Ibfa279990c5277970eaa2dbc2dd3a7d0cce7154e Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
-rw-r--r--src/websockets/qwebsocket.cpp20
-rw-r--r--src/websockets/qwebsocket.h2
-rw-r--r--src/websockets/qwebsocket_p.cpp20
-rw-r--r--src/websockets/qwebsocket_p.h2
4 files changed, 0 insertions, 44 deletions
diff --git a/src/websockets/qwebsocket.cpp b/src/websockets/qwebsocket.cpp
index 17bd364..39998cc 100644
--- a/src/websockets/qwebsocket.cpp
+++ b/src/websockets/qwebsocket.cpp
@@ -678,26 +678,6 @@ void QWebSocket::setReadBufferSize(qint64 size)
}
/*!
- Sets the given \a option to the value described by \a value.
- \sa socketOption()
-*/
-void QWebSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)
-{
- Q_D(QWebSocket);
- d->setSocketOption(option, value);
-}
-
-/*!
- Returns the value of the option \a option.
- \sa setSocketOption()
-*/
-QVariant QWebSocket::socketOption(QAbstractSocket::SocketOption option)
-{
- Q_D(QWebSocket);
- return d->socketOption(option);
-}
-
-/*!
Returns true if the QWebSocket is valid.
*/
bool QWebSocket::isValid() const
diff --git a/src/websockets/qwebsocket.h b/src/websockets/qwebsocket.h
index 757cf36..15c3a82 100644
--- a/src/websockets/qwebsocket.h
+++ b/src/websockets/qwebsocket.h
@@ -91,8 +91,6 @@ public:
void resume();
void setPauseMode(QAbstractSocket::PauseModes pauseMode);
- void setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value);
- QVariant socketOption(QAbstractSocket::SocketOption option);
QAbstractSocket::SocketState state() const;
QWebSocketProtocol::Version version() const;
diff --git a/src/websockets/qwebsocket_p.cpp b/src/websockets/qwebsocket_p.cpp
index 5d775ef..631e016 100644
--- a/src/websockets/qwebsocket_p.cpp
+++ b/src/websockets/qwebsocket_p.cpp
@@ -1218,26 +1218,6 @@ void QWebSocketPrivate::setReadBufferSize(qint64 size)
/*!
\internal
*/
-void QWebSocketPrivate::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)
-{
- if (Q_LIKELY(m_pSocket))
- m_pSocket->setSocketOption(option, value);
-}
-
-/*!
- \internal
- */
-QVariant QWebSocketPrivate::socketOption(QAbstractSocket::SocketOption option)
-{
- QVariant val;
- if (Q_LIKELY(m_pSocket))
- val = m_pSocket->socketOption(option);
- return val;
-}
-
-/*!
- \internal
- */
bool QWebSocketPrivate::isValid() const
{
return (m_pSocket && m_pSocket->isValid());
diff --git a/src/websockets/qwebsocket_p.h b/src/websockets/qwebsocket_p.h
index d3f13e2..f02e7ad 100644
--- a/src/websockets/qwebsocket_p.h
+++ b/src/websockets/qwebsocket_p.h
@@ -127,8 +127,6 @@ public:
void resume();
void setPauseMode(QAbstractSocket::PauseModes pauseMode);
void setReadBufferSize(qint64 size);
- void setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value);
- QVariant socketOption(QAbstractSocket::SocketOption option);
QAbstractSocket::SocketState state() const;
QWebSocketProtocol::Version version() const;