Skip to content

Commit

Permalink
Remove usage of if_enabled_clusters (#26689)
Browse files Browse the repository at this point in the history
* Remove usage of if_enabled_clusters

* Update unit tests

* zap regen all

* zap regen all
  • Loading branch information
andy31415 authored and pull[bot] committed Nov 29, 2023
1 parent ba06455 commit 7fd00f3
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

// THIS FILE IS GENERATED BY ZAP

#pragma once

#include <app-common/zap-generated/cluster-objects.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/

// THIS FILE IS GENERATED BY ZAP

// Prevent multiple inclusion
#pragma once

#include <app-common/zap-generated/ids/Clusters.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

// THIS FILE IS GENERATED BY ZAP

#pragma once

#include <app-common/zap-generated/cluster-objects.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/

// THIS FILE IS GENERATED BY ZAP

// Prevent multiple inclusion
#pragma once

#include <app-common/zap-generated/ids/Clusters.h>
Expand Down
3 changes: 0 additions & 3 deletions src/app/zap-templates/templates/app/CHIPClientCallbacks.zapt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{{> header}}

{{#if_enabled_clusters side='client'}}
#pragma once

#include <app/InteractionModelEngine.h>
Expand All @@ -21,4 +19,3 @@ typedef void (*{{asUpperCamelCase parent.name}}{{asUpperCamelCase name}}ListAttr
{{/zcl_attributes_server}}
{{/all_user_clusters}}

{{/if_enabled_clusters}}
4 changes: 0 additions & 4 deletions src/app/zap-templates/templates/app/CHIPClusters.zapt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{{> header}}

{{#if_enabled_clusters side='client'}}
// Prevent multiple inclusion
#pragma once

#include <app-common/zap-generated/ids/Clusters.h>
Expand All @@ -25,4 +22,3 @@ public:
{{/all_user_clusters}}
} // namespace Controller
} // namespace chip
{{/if_enabled_clusters}}
4 changes: 1 addition & 3 deletions src/controller/java/templates/ChipClusters-java.zapt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{{> header}}
{{#if_enabled_clusters side='client'}}

package chip.devicecontroller;

import javax.annotation.Nullable;
Expand Down Expand Up @@ -247,4 +245,4 @@ public class ChipClusters {
{{/not_last}}
{{/zcl_clusters}}
}
{{/if_enabled_clusters}}

4 changes: 1 addition & 3 deletions src/controller/java/templates/ChipIdLookup-java.zapt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{{> header}}
{{#if_enabled_clusters side='client'}}

package chip.devicecontroller;

public final class ChipIdLookup {
Expand Down Expand Up @@ -53,4 +51,4 @@ public final class ChipIdLookup {
return "";
}
}
{{/if_enabled_clusters}}

3 changes: 0 additions & 3 deletions src/controller/java/templates/ClusterInfo-java.zapt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{{> header}}
{{#if_enabled_clusters side='client'}}

package chip.devicecontroller;

import javax.annotation.Nullable;
Expand Down Expand Up @@ -373,4 +371,3 @@ public class ClusterInfoMapping {

}

{{/if_enabled_clusters}}

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

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

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

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

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

0 comments on commit 7fd00f3

Please sign in to comment.