diff --git a/src/platform/Linux/bluez/Helper.cpp b/src/platform/Linux/bluez/Helper.cpp index 19d008a88cc2cb..89ab6f22f9defd 100644 --- a/src/platform/Linux/bluez/Helper.cpp +++ b/src/platform/Linux/bluez/Helper.cpp @@ -75,7 +75,6 @@ #include #include "BluezObjectIterator.h" -#include "BluezObjectList.h" #include "Helper.h" using namespace ::nl; @@ -90,20 +89,6 @@ constexpr uint16_t kMaxConnectRetries = 4; static BluezConnection * GetBluezConnectionViaDevice(BluezEndpoint * apEndpoint); -namespace { - -class BluezEndpointObjectList : public BluezObjectList -{ -public: - explicit BluezEndpointObjectList(BluezEndpoint * apEndpoint) - { - VerifyOrReturn(apEndpoint != nullptr, ChipLogError(DeviceLayer, "apEndpoint is NULL in %s", __func__)); - Initialize(apEndpoint->mpObjMgr); - } -}; - -} // namespace - static gboolean BluezAdvertisingRelease(BluezLEAdvertisement1 * aAdv, GDBusMethodInvocation * aInvocation, gpointer apClosure) { bool isSuccess = false;