From 3077218f2e75d2293276f840bb5f30d48670faec Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 2 Mar 2022 17:01:11 -0500 Subject: [PATCH] Delete log-only delegate from platform app for 'device address resolved' (#15736) * Delete log-only delegate from platform app * Remove the derive in pairing command --- examples/platform/linux/AppMain.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/platform/linux/AppMain.cpp b/examples/platform/linux/AppMain.cpp index f22f117cc7b85f..14000d24fe0959 100644 --- a/examples/platform/linux/AppMain.cpp +++ b/examples/platform/linux/AppMain.cpp @@ -376,7 +376,7 @@ CHIP_ERROR ShutdownCommissioner() return CHIP_NO_ERROR; } -class PairingCommand : public Controller::DevicePairingDelegate, public Controller::DeviceAddressUpdateDelegate +class PairingCommand : public Controller::DevicePairingDelegate { public: PairingCommand() : @@ -389,9 +389,6 @@ class PairingCommand : public Controller::DevicePairingDelegate, public Controll void OnPairingDeleted(CHIP_ERROR error) override; void OnCommissioningComplete(NodeId deviceId, CHIP_ERROR error) override; - /////////// DeviceAddressUpdateDelegate Interface ///////// - void OnAddressUpdateComplete(NodeId nodeId, CHIP_ERROR error) override; - CHIP_ERROR UpdateNetworkAddress(); private: @@ -413,11 +410,6 @@ CHIP_ERROR PairingCommand::UpdateNetworkAddress() return gCommissioner.UpdateDevice(gRemoteId); } -void PairingCommand::OnAddressUpdateComplete(NodeId nodeId, CHIP_ERROR err) -{ - ChipLogProgress(AppServer, "OnAddressUpdateComplete: %s", ErrorStr(err)); -} - void PairingCommand::OnStatusUpdate(DevicePairingDelegate::Status status) { switch (status) @@ -527,7 +519,6 @@ CHIP_ERROR CommissionerPairOnNetwork(uint32_t pincode, uint16_t disc, Transport: { RendezvousParameters params = RendezvousParameters().SetSetupPINCode(pincode).SetDiscriminator(disc).SetPeerAddress(address); - gCommissioner.RegisterDeviceAddressUpdateDelegate(&gPairingCommand); gCommissioner.RegisterPairingDelegate(&gPairingCommand); gCommissioner.PairDevice(gRemoteId, params);