From fb07f3582454ddd2b9018640e184a402a3e422ba Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Thu, 4 May 2023 13:14:17 +0200 Subject: BlueZ: remove unused variables The localAdapter variable is a leftover from the BlueZ4 support. The remoteDevicePath variable was never used. Change-Id: I93a691627467700cc01d2ee372a5d8e661083cd4 Reviewed-by: Alex Blasche (cherry picked from commit 5c6b60d4051c683a02082b5da49f47fe6096b347) Reviewed-by: Qt Cherry-pick Bot --- src/bluetooth/qbluetoothsocket_bluez.cpp | 1 - src/bluetooth/qbluetoothsocket_bluezdbus.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/bluetooth/qbluetoothsocket_bluez.cpp b/src/bluetooth/qbluetoothsocket_bluez.cpp index 7588c705..7e45f299 100644 --- a/src/bluetooth/qbluetoothsocket_bluez.cpp +++ b/src/bluetooth/qbluetoothsocket_bluez.cpp @@ -456,7 +456,6 @@ QString QBluetoothSocketPrivateBluez::peerName() const } const QString peerAddress = QBluetoothAddress(bdaddr).toString(); - const QString localAdapter = localAddress().toString(); initializeBluez5(); OrgFreedesktopDBusObjectManagerInterface manager( diff --git a/src/bluetooth/qbluetoothsocket_bluezdbus.cpp b/src/bluetooth/qbluetoothsocket_bluezdbus.cpp index f094c62b..64132961 100644 --- a/src/bluetooth/qbluetoothsocket_bluezdbus.cpp +++ b/src/bluetooth/qbluetoothsocket_bluezdbus.cpp @@ -84,8 +84,6 @@ static QString findRemoteDevicePath(const QBluetoothAddress &address) if (reply.isError()) return QString(); - QString remoteDevicePath; - ManagedObjectList objectList = reply.value(); for (ManagedObjectList::const_iterator it = objectList.constBegin(); it != objectList.constEnd(); ++it) { -- cgit v1.2.1