Skip to content

Commit

Permalink
Clean up some unused ember methods from codegen & headers (#23325)
Browse files Browse the repository at this point in the history
* Remove ember Task* definitions and usages as they seem unused

* Remove time-util functions as they do not seem used

* Remove more seemingly unused/undefined method declarations

* Zap regen

* Removed more unused methods

* Restyle

* Remove a few more unused functions

* Restyle

* More dead code removal

* Remove EmberNodeType and EmberChildData because unused

* Removed emberAfClusterDefaultResponseCallback and emberAfClusterMessageSentCallback

* Add comment for followup

* Restyle
  • Loading branch information
andy31415 authored and pull[bot] committed Nov 3, 2022
1 parent ae8f203 commit 5252647
Show file tree
Hide file tree
Showing 56 changed files with 3 additions and 1,731 deletions.
16 changes: 0 additions & 16 deletions src/app/util/af-event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,6 @@ EmberStatus emberAfScheduleClusterTick(EndpointId endpoint, ClusterId clusterId,
(sleepControl == EMBER_AF_STAY_AWAKE ? EMBER_AF_STAY_AWAKE : EMBER_AF_OK_TO_SLEEP));
}

EmberStatus emberAfScheduleClientTickExtended(EndpointId endpoint, ClusterId clusterId, uint32_t delayMs,
EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)
{
return emberAfScheduleTickExtended(endpoint, clusterId, EMBER_AF_CLIENT_CLUSTER_TICK, delayMs, pollControl, sleepControl);
}

EmberStatus emberAfScheduleClientTick(EndpointId endpoint, ClusterId clusterId, uint32_t delayMs)
{
return emberAfScheduleClientTickExtended(endpoint, clusterId, delayMs, EMBER_AF_LONG_POLL, EMBER_AF_OK_TO_SLEEP);
}

EmberStatus emberAfScheduleServerTickExtended(EndpointId endpoint, ClusterId clusterId, uint32_t delayMs,
EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl)
{
Expand All @@ -213,11 +202,6 @@ EmberStatus emberAfDeactivateClusterTick(EndpointId endpoint, ClusterId clusterI
return EMBER_BAD_ARGUMENT;
}

EmberStatus emberAfDeactivateClientTick(EndpointId endpoint, ClusterId clusterId)
{
return emberAfDeactivateClusterTick(endpoint, clusterId, EMBER_AF_CLIENT_CLUSTER_TICK);
}

EmberStatus emberAfDeactivateServerTick(EndpointId endpoint, ClusterId clusterId)
{
return emberAfDeactivateClusterTick(endpoint, clusterId, EMBER_AF_SERVER_CLUSTER_TICK);
Expand Down
Loading

0 comments on commit 5252647

Please sign in to comment.