From d2f32f8f110612561e3cd355b5c0e20637fdac04 Mon Sep 17 00:00:00 2001 From: Jake Ororke Date: Fri, 15 Nov 2024 10:10:19 -0800 Subject: [PATCH] Updating OpsCredsBinding.cpp and ChipDeviceCtrl.py: - Some further cleanup performed. --- src/controller/python/OpCredsBinding.cpp | 2 -- src/controller/python/chip/ChipDeviceCtrl.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/controller/python/OpCredsBinding.cpp b/src/controller/python/OpCredsBinding.cpp index eb596ff1ce7848..0be168fc700d50 100644 --- a/src/controller/python/OpCredsBinding.cpp +++ b/src/controller/python/OpCredsBinding.cpp @@ -610,8 +610,6 @@ PyChipError pychip_OpCreds_AllocateController(OpCredsContext * context, chip::Co { initParams.defaultCommissioner = &sTestCommissioner; pairingDelegate->SetCommissioningSuccessCallback(pychip_OnCommissioningSuccess); - // pairingDelegate->SetCommissioningSuccessCallback([](chip::PeerId peerId) { pychip_OnCommissioningSuccess(peerId, - // sTestCommissioner.GetRCACData().data(), sTestCommissioner.GetRCACData().size()); }); pairingDelegate->SetCommissioningFailureCallback(pychip_OnCommissioningFailure); pairingDelegate->SetCommissioningStatusUpdateCallback(pychip_OnCommissioningStatusUpdate); } diff --git a/src/controller/python/chip/ChipDeviceCtrl.py b/src/controller/python/chip/ChipDeviceCtrl.py index cf74a5034570af..249016f68042a6 100644 --- a/src/controller/python/chip/ChipDeviceCtrl.py +++ b/src/controller/python/chip/ChipDeviceCtrl.py @@ -472,7 +472,6 @@ def HandleCommissioningComplete(nodeId: int, err: PyChipError): self._dmLib.pychip_DeviceController_SetIcdRegistrationParameters(False, None) if self._dmLib.pychip_TestCommissionerUsed(): - # Prepare pointers to store the results err = self._dmLib.pychip_GetCompletionError() if self._commissioning_context.future is None: @@ -1933,8 +1932,6 @@ def _InitLib(self): self._dmLib.pychip_GetCompletionError.argtypes = [] self._dmLib.pychip_GetCompletionError.restype = PyChipError - #self._dmLib.pychip_GetCommissioningRCACData.argtypes = [POINTER(POINTER(c_uint8)), POINTER(c_size_t)] - #self._dmLib.pychip_GetCommissioningRCACData.restype = None self._dmLib.pychip_SetCommissioningRCACCallback.argtypes = [_RCACCallbackType] self._dmLib.pychip_SetCommissioningRCACCallback.restype = None