mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
qtserialbluetooth: Remove no-op calls
waitForReadyRead and waitForBytesWritten not overridden in QBluetoothSocket and the default implementation in QIODevice are just no-ops that always return false. This removes those calls to lessen the confusion for anyone who looks at the code. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
edac07554c
commit
65e9991501
1 changed files with 0 additions and 4 deletions
|
@ -236,8 +236,6 @@ static int qt_serial_read(serial_t *device, void* data, unsigned int size)
|
|||
|
||||
while(nbytes < size && device->socket->state() == QBluetoothSocket::ConnectedState)
|
||||
{
|
||||
device->socket->waitForReadyRead(device->timeout);
|
||||
|
||||
rc = device->socket->read((char *) data + nbytes, size - nbytes);
|
||||
|
||||
if (rc < 0) {
|
||||
|
@ -295,8 +293,6 @@ static int qt_serial_write(serial_t *device, const void* data, unsigned int size
|
|||
|
||||
while(nbytes < size && device->socket->state() == QBluetoothSocket::ConnectedState)
|
||||
{
|
||||
device->socket->waitForBytesWritten(device->timeout);
|
||||
|
||||
rc = device->socket->write((char *) data + nbytes, size - nbytes);
|
||||
|
||||
if (rc < 0) {
|
||||
|
|
Loading…
Reference in a new issue