diff --git a/examples/platform/linux/CommissionerMain.cpp b/examples/platform/linux/CommissionerMain.cpp index f7b6ae73650e72..6008bc817c6f4d 100644 --- a/examples/platform/linux/CommissionerMain.cpp +++ b/examples/platform/linux/CommissionerMain.cpp @@ -223,8 +223,6 @@ class PairingCommand : public Controller::DevicePairingDelegate void OnPairingDeleted(CHIP_ERROR error) override; void OnCommissioningComplete(NodeId deviceId, CHIP_ERROR error) override; - CHIP_ERROR UpdateNetworkAddress(); - private: #if CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED static void OnDeviceConnectedFn(void * context, chip::OperationalDeviceProxy * device); @@ -238,12 +236,6 @@ class PairingCommand : public Controller::DevicePairingDelegate PairingCommand gPairingCommand; NodeId gRemoteId = kTestDeviceNodeId; -CHIP_ERROR PairingCommand::UpdateNetworkAddress() -{ - ChipLogProgress(AppServer, "Mdns: Updating NodeId: %" PRIx64 " ...", gRemoteId); - return gCommissioner.UpdateDevice(gRemoteId); -} - void PairingCommand::OnStatusUpdate(DevicePairingDelegate::Status status) { switch (status) @@ -266,11 +258,6 @@ void PairingCommand::OnPairingComplete(CHIP_ERROR err) else { ChipLogProgress(AppServer, "Pairing Failure: %s", ErrorStr(err)); - // For some devices, it may take more time to appear on the network and become discoverable - // over DNS-SD, so don't give up on failure and restart the address update. Note that this - // will not be repeated endlessly as each chip-tool command has a timeout (in the case of - // the `pairing` command it equals 120s). - // UpdateNetworkAddress(); } }