Skip to content

Commit 0634220

Browse files
authored
Merge pull request ResearchKit#139 from syoung-smallwisdom/fix-warnings
Fix warnings - issue introduced with changes for EU units
2 parents 42561b1 + 76c3985 commit 0634220

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

APCAppCore/APCAppCore/UI/Model/APCPickerItemQuantity.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ NS_ASSUME_NONNULL_BEGIN
4242
@property (nonatomic, readonly) HKQuantity *quantity;
4343
@property (nonatomic, readonly) NSString *text;
4444

45-
- (instancetype)initWithQuantity:(HKQuantity *)quantity text:(NSString *)text NS_DESIGNATED_INITIALIZER;
45+
- (instancetype)init NS_UNAVAILABLE;
46+
+ (instancetype)new NS_UNAVAILABLE;
47+
48+
- (instancetype)initWithQuantity:(HKQuantity *)quantity text:(NSString *)text NS_DESIGNATED_INITIALIZER;
4649

4750
@end
4851

APCAppCore/APCAppCore/UI/Model/APCTableViewItem.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@
8787

8888
@property (nonatomic, copy) HKUnit *unit;
8989

90-
- (HKQuantity *)quantity;
91-
9290
@end
9391

9492

0 commit comments

Comments
 (0)