Skip to content

Commit

Permalink
Remove deviceAddressUpdateDelegate member of init params in CHIPDevic…
Browse files Browse the repository at this point in the history
…eController (#15825)
  • Loading branch information
andy31415 authored Mar 4, 2022
1 parent a0a73a1 commit 6a29e54
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/platform/linux/AppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ CHIP_ERROR InitCommissioner()
factoryParams.fabricIndependentStorage = &gServerStorage;

params.storageDelegate = &gServerStorage;
params.deviceAddressUpdateDelegate = nullptr;
params.operationalCredentialsDelegate = &gOpCredsIssuer;

ReturnErrorOnFailure(gOpCredsIssuer.Initialize(gServerStorage));
Expand Down
1 change: 0 additions & 1 deletion src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ CHIP_ERROR DeviceController::Init(ControllerInitParams params)
ReturnErrorOnFailure(mDNSResolver.Init(params.systemState->UDPEndPointManager()));
mDNSResolver.SetOperationalDelegate(this);
mDNSResolver.SetCommissioningDelegate(this);
RegisterDeviceAddressUpdateDelegate(params.deviceAddressUpdateDelegate);
RegisterDeviceDiscoveryDelegate(params.deviceDiscoveryDelegate);

VerifyOrReturnError(params.operationalCredentialsDelegate != nullptr, CHIP_ERROR_INVALID_ARGUMENT);
Expand Down
1 change: 0 additions & 1 deletion src/controller/CHIPDeviceController.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ struct ControllerInitParams
{
PersistentStorageDelegate * storageDelegate = nullptr;
DeviceControllerSystemState * systemState = nullptr;
DeviceAddressUpdateDelegate * deviceAddressUpdateDelegate = nullptr;
DeviceDiscoveryDelegate * deviceDiscoveryDelegate = nullptr;
OperationalCredentialsDelegate * operationalCredentialsDelegate = nullptr;

Expand Down
1 change: 0 additions & 1 deletion src/controller/CHIPDeviceControllerFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ CHIP_ERROR DeviceControllerFactory::InitSystemState(FactoryInitParams params)

void DeviceControllerFactory::PopulateInitParams(ControllerInitParams & controllerParams, const SetupParams & params)
{
controllerParams.deviceAddressUpdateDelegate = params.deviceAddressUpdateDelegate;
controllerParams.operationalCredentialsDelegate = params.operationalCredentialsDelegate;
controllerParams.operationalKeypair = params.operationalKeypair;
controllerParams.controllerNOC = params.controllerNOC;
Expand Down
1 change: 0 additions & 1 deletion src/controller/CHIPDeviceControllerFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ namespace Controller {

struct SetupParams
{
DeviceAddressUpdateDelegate * deviceAddressUpdateDelegate = nullptr;
OperationalCredentialsDelegate * operationalCredentialsDelegate = nullptr;

PersistentStorageDelegate * storageDelegate = nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/controller/python/OpCredsBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ ChipError::StorageType pychip_OpCreds_AllocateController(OpCredsContext * contex

Controller::SetupParams initParams;
initParams.storageDelegate = sStorageAdapter;
initParams.deviceAddressUpdateDelegate = nullptr;
initParams.pairingDelegate = &sPairingDelegate;
initParams.operationalCredentialsDelegate = context->mAdapter.get();
initParams.operationalKeypair = &ephemeralKey;
Expand Down
1 change: 0 additions & 1 deletion src/darwin/Framework/CHIP/CHIPDeviceController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ - (BOOL)startup:(_Nullable id<CHIPPersistentStorageDelegate>)storageDelegate
params.fabricStorage = _fabricStorage;
params.fabricIndependentStorage = _persistentStorageDelegateBridge;
commissionerParams.storageDelegate = _persistentStorageDelegateBridge;
commissionerParams.deviceAddressUpdateDelegate = nullptr;
commissionerParams.pairingDelegate = _pairingDelegateBridge;

commissionerParams.operationalCredentialsDelegate = _operationalCredentialsDelegate;
Expand Down

0 comments on commit 6a29e54

Please sign in to comment.