Skip to content

Commit 7e2299d

Browse files
Remove unused CLUSTER_MASK bits. (project-chip#25212)
Fixes project-chip#24984
1 parent 3951efb commit 7e2299d

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

src/app/util/attribute-storage.h

-6
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,6 @@ void emAfCallInits(void);
8989

9090
#define emberAfClusterIsClient(cluster) ((bool) (((cluster)->mask & CLUSTER_MASK_CLIENT) != 0))
9191
#define emberAfClusterIsServer(cluster) ((bool) (((cluster)->mask & CLUSTER_MASK_SERVER) != 0))
92-
#define emberAfDoesClusterHaveInitFunction(cluster) ((bool) (((cluster)->mask & CLUSTER_MASK_INIT_FUNCTION) != 0))
93-
#define emberAfDoesClusterHaveAttributeChangedFunction(cluster) \
94-
((bool) (((cluster)->mask & CLUSTER_MASK_ATTRIBUTE_CHANGED_FUNCTION) != 0))
95-
#define emberAfDoesClusterHaveDefaultResponseFunction(cluster) \
96-
((bool) (((cluster)->mask & CLUSTER_MASK_DEFAULT_RESPONSE_FUNCTION) != 0))
97-
#define emberAfDoesClusterHaveMessageSentFunction(cluster) ((bool) (((cluster)->mask & CLUSTER_MASK_MESSAGE_SENT_FUNCTION) != 0))
9892

9993
// Initial configuration
10094
void emberAfEndpointConfigure(void);

src/app/zap-templates/templates/app/att-storage.zapt

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
#define CLUSTER_MASK_INIT_FUNCTION (0x01)
1010
// Does this cluster have attribute changed function?
1111
#define CLUSTER_MASK_ATTRIBUTE_CHANGED_FUNCTION (0x02)
12-
// Does this cluster have default response function?
13-
#define CLUSTER_MASK_DEFAULT_RESPONSE_FUNCTION (0x04)
14-
// Does this cluster have message sent function?
15-
#define CLUSTER_MASK_MESSAGE_SENT_FUNCTION (0x08)
12+
// Bits 0x04 and 0x08 are free.
1613
// Does this cluster have shutdown function?
1714
#define CLUSTER_MASK_SHUTDOWN_FUNCTION (0x10)
1815
// Does this cluster have pre-attribute changed function?

zzz_generated/app-common/app-common/zap-generated/att-storage.h

+1-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)