From b9e47c9b12a54bef3cd5e21b93c85210e6abf227 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 18 Feb 2016 11:02:59 +0100 Subject: Cleaned up watchconnection --- rockworkd/libpebble/watchconnection.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rockworkd/libpebble/watchconnection.cpp b/rockworkd/libpebble/watchconnection.cpp index dabacf4..c2d7518 100644 --- a/rockworkd/libpebble/watchconnection.cpp +++ b/rockworkd/libpebble/watchconnection.cpp @@ -49,17 +49,14 @@ void WatchConnection::scheduleReconnect() void WatchConnection::reconnect() { QBluetoothLocalDevice localBtDev; - qDebug() << "Reconnection"; if (localBtDev.pairingStatus(m_pebbleAddress) == QBluetoothLocalDevice::Unpaired) { // Try again in one 10 secs, give the user some time to pair it - qDebug() << "Unpaired."; m_connectionAttempts = 1; scheduleReconnect(); return; } if (m_socket) { - qDebug() << "Socket exists."; if (m_socket->state() == QBluetoothSocket::ConnectedState) { qDebug() << "Already connected."; return; @@ -69,7 +66,6 @@ void WatchConnection::reconnect() m_connectionAttempts++; - qDebug() << "Creating socket."; m_socket = new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol, this); connect(m_socket, &QBluetoothSocket::connected, this, &WatchConnection::pebbleConnected); connect(m_socket, &QBluetoothSocket::readyRead, this, &WatchConnection::readyRead); @@ -146,7 +142,6 @@ void WatchConnection::pebbleConnected() void WatchConnection::pebbleDisconnected() { qDebug() << "Disconnected"; - emit watchDisconnected(); QBluetoothSocket *socket = qobject_cast(sender()); if (!socket) return; -- cgit v1.2.3