20
20
#include < app-common/zap-generated/attribute-type.h>
21
21
#include < app-common/zap-generated/attributes/Accessors.h>
22
22
#include < app-common/zap-generated/ids/Clusters.h>
23
- #include < app-common/zap-generated/print-cluster.h>
24
23
#include < app/util/af.h>
25
24
#include < app/util/attribute-storage.h>
26
25
#include < app/util/config.h>
@@ -41,23 +40,6 @@ using namespace chip;
41
40
42
41
using chip::Protocols::InteractionModel::Status;
43
42
44
- // ------------------------------------------------------------------------------
45
- // Forward Declarations
46
-
47
- // ------------------------------------------------------------------------------
48
- // Globals
49
-
50
- const EmberAfClusterName zclClusterNames[] = {
51
- CLUSTER_IDS_TO_NAMES // defined in print-cluster.h
52
- { kInvalidClusterId , nullptr }, // terminator
53
- };
54
-
55
- #ifdef MATTER_DM_GENERATED_PLUGIN_TICK_FUNCTION_DECLARATIONS
56
- MATTER_DM_GENERATED_PLUGIN_TICK_FUNCTION_DECLARATIONS
57
- #endif
58
-
59
- // ------------------------------------------------------------------------------
60
-
61
43
// Is the device identifying?
62
44
bool emberAfIsDeviceIdentifying (EndpointId endpoint)
63
45
{
@@ -174,25 +156,6 @@ void MatterPowerTopologyPluginServerInitCallback() {}
174
156
void MatterElectricalEnergyMeasurementPluginServerInitCallback () {}
175
157
void MatterElectricalPowerMeasurementPluginServerInitCallback () {}
176
158
177
- // ****************************************
178
- // Print out information about each cluster
179
- // ****************************************
180
-
181
- uint16_t emberAfFindClusterNameIndex (ClusterId cluster)
182
- {
183
- static_assert (sizeof (ClusterId) == 4 , " May need to adjust our index type or somehow define it in terms of cluster id type" );
184
- uint16_t index = 0 ;
185
- while (zclClusterNames[index ].id != kInvalidClusterId )
186
- {
187
- if (zclClusterNames[index ].id == cluster)
188
- {
189
- return index ;
190
- }
191
- index ++;
192
- }
193
- return 0xFFFF ;
194
- }
195
-
196
159
#if (CHIP_CONFIG_BIG_ENDIAN_TARGET)
197
160
#define EM_BIG_ENDIAN true
198
161
#else
0 commit comments