Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove emberAfStackDown. #25296

Merged
merged 1 commit into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/app/util/generic-callback-stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ emberAfExternalAttributeWriteCallback(EndpointId endpoint, ClusterId clusterId,
return EMBER_ZCL_STATUS_FAILURE;
}

void __attribute__((weak)) emberAfRegistrationAbortCallback() {}

bool __attribute__((weak)) emberAfStartMoveCallback()
{
return false;
}

chip::Protocols::InteractionModel::Status __attribute__((weak))
MatterPreAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t type, uint16_t size,
uint8_t * value)
Expand Down
16 changes: 0 additions & 16 deletions src/app/util/generic-callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,6 @@ EmberAfStatus emberAfExternalAttributeReadCallback(chip::EndpointId endpoint, ch
EmberAfStatus emberAfExternalAttributeWriteCallback(chip::EndpointId endpoint, chip::ClusterId clusterId,
const EmberAfAttributeMetadata * attributeMetadata, uint8_t * buffer);

/** @brief Registration Abort
*
* This callback is called when the device should abort the registration
* process.
*
*/
void emberAfRegistrationAbortCallback();

/** @brief Start Move
*
* This function is called to initiate the process for a device to move (rejoin)
* to a new parent.
*
*/
bool emberAfStartMoveCallback();

/** @brief Pre Attribute Change
*
* This function is called by the application framework before it changes an
Expand Down
10 changes: 0 additions & 10 deletions src/app/util/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,6 @@ void MatterProxyDiscoveryPluginServerInitCallback() {}
void MatterProxyConfigurationPluginServerInitCallback() {}
void MatterFanControlPluginServerInitCallback() {}

// ****************************************
// This function is called by the application when the stack goes down,
// such as after a leave network. This allows zcl utils to clear state
// that should not be kept when changing networks
// ****************************************
void emberAfStackDown()
{
emberAfRegistrationAbortCallback();
}

// ****************************************
// Print out information about each cluster
// ****************************************
Expand Down
1 change: 0 additions & 1 deletion src/app/util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern const EmberAfClusterName zclClusterNames[];

void emberAfInit();
uint16_t emberAfFindClusterNameIndex(chip::ClusterId cluster);
void emberAfStackDown(void);

/**
* Retrieves the difference between the two passed values.
Expand Down