diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-02-26 14:31:25 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-26 17:31:15 +0100 |
commit | f58cddd97aa873d7d2b310d59e5fa1febbaba224 (patch) | |
tree | 781285ec293fdc2b0f949cb609360e293ea417e4 | |
parent | 98431098856cab7d386fa2921eef837ce5e6e03f (diff) |
Remove QBluetoothSocketPrivate::socketDescriptor()
The function is not required as the public accessor function directly
returns the socket descriptor.
Change-Id: I6d64bec7b4f0542ce213dc90dcfe30c3885ed21d
Reviewed-by: Nedim Hadzic <nedimhadzija@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r-- | src/bluetooth/qbluetoothsocket.cpp | 1 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothsocket_android.cpp | 5 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothsocket_bluez.cpp | 5 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothsocket_p.cpp | 5 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothsocket_p.h | 1 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothsocket_qnx.cpp | 5 |
6 files changed, 1 insertions, 21 deletions
diff --git a/src/bluetooth/qbluetoothsocket.cpp b/src/bluetooth/qbluetoothsocket.cpp index 42a9c870..6272ca1f 100644 --- a/src/bluetooth/qbluetoothsocket.cpp +++ b/src/bluetooth/qbluetoothsocket.cpp @@ -686,6 +686,7 @@ bool QBluetoothSocket::setSocketDescriptor(int socketDescriptor, QBluetoothServi /*! Returns the platform-specific socket descriptor, if available. + This function returns -1 if the descriptor is not available or an error has occurred. */ int QBluetoothSocket::socketDescriptor() const diff --git a/src/bluetooth/qbluetoothsocket_android.cpp b/src/bluetooth/qbluetoothsocket_android.cpp index 93089182..fa0ca6ad 100644 --- a/src/bluetooth/qbluetoothsocket_android.cpp +++ b/src/bluetooth/qbluetoothsocket_android.cpp @@ -434,11 +434,6 @@ bool QBluetoothSocketPrivate::setSocketDescriptor(const QAndroidJniObject &socke return true; } -int QBluetoothSocketPrivate::socketDescriptor() const -{ - return 0; -} - qint64 QBluetoothSocketPrivate::bytesAvailable() const { //We cannot access buffer directly as it is part of different thread diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp index 235f21d3..232f8942 100644 --- a/src/bluetooth/qbluetoothsocket_bluez.cpp +++ b/src/bluetooth/qbluetoothsocket_bluez.cpp @@ -535,11 +535,6 @@ bool QBluetoothSocketPrivate::setSocketDescriptor(int socketDescriptor, QBluetoo return true; } -int QBluetoothSocketPrivate::socketDescriptor() const -{ - return socket; -} - qint64 QBluetoothSocketPrivate::bytesAvailable() const { return buffer.size(); diff --git a/src/bluetooth/qbluetoothsocket_p.cpp b/src/bluetooth/qbluetoothsocket_p.cpp index 018ccea6..bacf7490 100644 --- a/src/bluetooth/qbluetoothsocket_p.cpp +++ b/src/bluetooth/qbluetoothsocket_p.cpp @@ -135,11 +135,6 @@ bool QBluetoothSocketPrivate::setSocketDescriptor(int socketDescriptor, QBluetoo return false; } -int QBluetoothSocketPrivate::socketDescriptor() const -{ - return 0; -} - qint64 QBluetoothSocketPrivate::bytesAvailable() const { return 0; diff --git a/src/bluetooth/qbluetoothsocket_p.h b/src/bluetooth/qbluetoothsocket_p.h index bafbf033..2e1bb66f 100644 --- a/src/bluetooth/qbluetoothsocket_p.h +++ b/src/bluetooth/qbluetoothsocket_p.h @@ -133,7 +133,6 @@ public: bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState = QBluetoothSocket::ConnectedState, QBluetoothSocket::OpenMode openMode = QBluetoothSocket::ReadWrite); - int socketDescriptor() const; qint64 bytesAvailable() const; diff --git a/src/bluetooth/qbluetoothsocket_qnx.cpp b/src/bluetooth/qbluetoothsocket_qnx.cpp index 81c46dd7..e8350723 100644 --- a/src/bluetooth/qbluetoothsocket_qnx.cpp +++ b/src/bluetooth/qbluetoothsocket_qnx.cpp @@ -288,11 +288,6 @@ bool QBluetoothSocketPrivate::setSocketDescriptor(int socketDescriptor, QBluetoo return true; } -int QBluetoothSocketPrivate::socketDescriptor() const -{ - return 0; -} - qint64 QBluetoothSocketPrivate::bytesAvailable() const { return buffer.size(); |