Skip to content

Commit

Permalink
Remove emberAfStackDown. (#25296)
Browse files Browse the repository at this point in the history
This is unused and does nothing.

Fixes #1940
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 22, 2024
1 parent a38e455 commit 4103507
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 34 deletions.
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

0 comments on commit 4103507

Please sign in to comment.