Skip to content

Commit

Permalink
Remove redundant init and copyWithZone declarations in Matter framewo…
Browse files Browse the repository at this point in the history
…rk. (#23866)

Fixes #23482
  • Loading branch information
bzbarsky-apple authored Dec 2, 2022
1 parent a307034 commit 5dfbd63
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1,096 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ MTR_NEWLY_AVAILABLE
*
*/
@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs {{#if (isStrEqual source "server")}}MTR_NEWLY_DEPRECATED("Timed invoke does not make sense for server to client commands"){{/if}};

- (instancetype)init;
- (id)copyWithZone:(NSZone * _Nullable)zone;
@end
{{#*inline "deprecatedDecl"}}

Expand Down
6 changes: 0 additions & 6 deletions src/darwin/Framework/CHIP/templates/MTRStructsObjc.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ NS_ASSUME_NONNULL_BEGIN
{{#zcl_struct_items}}
@property (nonatomic, copy{{#unless (isStrEqual (asGetterName label) (asStructPropertyName label))}}, getter={{asGetterName label}}{{/unless}}) {{asObjectiveCType type parent.parent.name}} {{asStructPropertyName label}};
{{/zcl_struct_items}}

- (instancetype)init;
- (id)copyWithZone:(NSZone * _Nullable)zone;
{{/inline}}
{{! TODO: We need a better setup for the API_AVALABLE annotations here; this does not scale at all sanely. }}
{{#if (isStrEqual (asUpperCamelCase parent.name) "Descriptor")}}
Expand Down Expand Up @@ -54,9 +51,6 @@ MTR_NEWLY_AVAILABLE
{{#zcl_event_fields}}
@property (nonatomic, copy{{#unless (isStrEqual (asGetterName name) (asStructPropertyName name))}}, getter={{asGetterName name}}{{/unless}}) {{asObjectiveCType type parent.parent.name}} {{asStructPropertyName name}};
{{/zcl_event_fields}}

- (instancetype)init;
- (id)copyWithZone:(NSZone * _Nullable)zone;
@end
{{#unless (isStrEqual (asUpperCamelCase parent.name preserveAcronyms=true) (compatClusterNameRemapping parent.name))}}

Expand Down
Loading

0 comments on commit 5dfbd63

Please sign in to comment.