From c274a0d851bc280c0d10d6a7683d901c77588289 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Mon, 16 Nov 2020 12:54:55 +0100 Subject: [PATCH] Remove callbacks generated stubs from templates --- src/app/zap-templates/callback-stub-src.zapt | 39 -------------------- 1 file changed, 39 deletions(-) diff --git a/src/app/zap-templates/callback-stub-src.zapt b/src/app/zap-templates/callback-stub-src.zapt index 00b4e5e3cdee28..f72acae9b49b7b 100644 --- a/src/app/zap-templates/callback-stub-src.zapt +++ b/src/app/zap-templates/callback-stub-src.zapt @@ -27,45 +27,6 @@ void __attribute__((weak)) emberAf{{asCamelCased name false}}ClusterInitCallback } {{/all_user_clusters_names}} -// Cluster Command callback - -{{#all_user_clusters}} -{{#if (isEnabled enabled)}} -{{#all_user_cluster_commands}} -{{#if (isStrEqual clusterName parent.name)}} -{{#if (isCommandAvailable parent.side incoming outgoing commandSource)}} -/** -* @brief {{parent.name}} Cluster {{name}} Command callback -{{#if (zcl_command_arguments_count this.id)}} -{{#zcl_command_arguments}} -* @param {{asCamelCased label}} -{{/zcl_command_arguments}} -{{/if}} -*/ - -{{#if (zcl_command_arguments_count this.id)}} -bool __attribute__((weak)) emberAf{{asCamelCased parent.name false}}Cluster{{asCamelCased name false}}Callback({{#zcl_command_arguments}} {{asUnderlyingType type}} {{asSymbol label}}{{#unless (isLastElement index count)}}, {{/unless}}{{/zcl_command_arguments}}) -{ - // To prevent warning - {{#zcl_command_arguments}} - (void) {{asSymbol label}}; - {{/zcl_command_arguments}} - - return false; -} -{{else}} -bool __attribute__((weak)) emberAf{{asCamelCased parent.name false}}Cluster{{asCamelCased name false}}Callback() -{ - return false; -} -{{/if}} - -{{/if}} -{{/if}} -{{/all_user_cluster_commands}} -{{/if}} -{{/all_user_clusters}} - // // Non-Cluster Related Callbacks //