From 1e256466dce841d2c2c1a4d26b54c1ad74d6ba4d Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Fri, 18 Oct 2024 16:50:06 -0400 Subject: [PATCH] Removed redundant `Value` method public declarations There are already @property declarations for these, so I'm not sure why the older manual form is necessary. For example, for an attribute named `fooBar` this changes the end result in the .h file from: ``` @property (nonatomic, strong) NSNumber* fooBar; @property (nonatomic) int32_t fooBarValue; - (int32_t)fooBarValue; - (void)setFooBarValue:(int32_t)value_; ``` to just: ``` @property (nonatomic, strong) NSNumber* fooBar; @property (nonatomic) int32_t fooBarValue; ``` --- templates/machine.h.motemplate | 3 --- 1 file changed, 3 deletions(-) diff --git a/templates/machine.h.motemplate b/templates/machine.h.motemplate index 4b64aaa9..db16f1af 100644 --- a/templates/machine.h.motemplate +++ b/templates/machine.h.motemplate @@ -75,11 +75,8 @@ NS_ASSUME_NONNULL_BEGIN <$if Attribute.hasScalarAttributeType$> <$if Attribute.isReadonly$> @property (atomic, readonly) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value; -- (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value; <$else$> @property (atomic) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value; -- (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value; -- (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_; <$endif$> <$endif$> <$endif$>