Skip to content

Commit

Permalink
Remove usage of if_enabled_clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed May 19, 2023
1 parent 243ee4b commit 532a901
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
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}}

0 comments on commit 532a901

Please sign in to comment.