Skip to content

Commit 3d75573

Browse files
Move some MTRDevice_Concrete-specific constants to MTRDevice_Concrete. (#36152)
1 parent 7d6373f commit 3d75573

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838

3939
#import "lib/core/CHIPError.h"
4040

41-
// TODO Should these string definitions just move to MTRDevice_Concrete, since
42-
// that's the only place they are used?
43-
NSString * const MTRPreviousDataKey = @"previousData";
44-
NSString * const MTRDataVersionKey = @"dataVersion";
45-
4641
@implementation MTRDeviceDelegateInfo
4742
- (instancetype)initWithDelegate:(id<MTRDeviceDelegate>)delegate queue:(dispatch_queue_t)queue interestedPathsForAttributes:(NSArray * _Nullable)interestedPathsForAttributes interestedPathsForEvents:(NSArray * _Nullable)interestedPathsForEvents
4843
{

src/darwin/Framework/CHIP/MTRDevice_Concrete.mm

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858

5959
static NSString * const sLastInitialSubscribeLatencyKey = @"lastInitialSubscribeLatency";
6060

61+
// Not static, because these are public API.
62+
NSString * const MTRPreviousDataKey = @"previousData";
63+
NSString * const MTRDataVersionKey = @"dataVersion";
64+
6165
// allow readwrite access to superclass properties
6266
@interface MTRDevice_Concrete ()
6367

0 commit comments

Comments
 (0)