Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usage of if_enabled_clusters #26689

Merged
merged 6 commits into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}}