Skip to content

Commit

Permalink
Remove unused cluster id constants. (#10108)
Browse files Browse the repository at this point in the history
We have cluster ids defined in
app-common/zap-generated/ids/Clusters.h; there is no need to define
them other places too.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Nov 6, 2021
1 parent cf2a1aa commit ad1be3d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 112 deletions.
4 changes: 0 additions & 4 deletions examples/chip-tool/templates/commands.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ static void On{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttri

{{> clusters_header}}

{{#chip_client_clusters}}
constexpr chip::ClusterId k{{asUpperCamelCase name}}ClusterId = {{asHex code 4}};
{{/chip_client_clusters}}

{{#chip_client_clusters}}
{{> cluster_header}}

Expand Down
1 change: 0 additions & 1 deletion src/app/zap-templates/templates/app/cluster-objects.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace clusters {

{{#all_user_clusters}}
namespace {{asCamelCased name false}} {
constexpr ClusterId kClusterId = {{asHex code 2}};
{{#zcl_enums}}
// Enum for {{label}}
enum class {{asType label}} : {{asUnderlyingZclType type}} {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad1be3d

Please sign in to comment.