From 5103a56fdfec90408a7eae60435ed137f12ca807 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 29 Nov 2023 18:25:47 -0800 Subject: [PATCH] Fixing this --- src/darwin/Framework/CHIP/MTRDevice.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index dfc7ed8273c88c..35b92b34c64a60 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -1696,6 +1696,11 @@ - (void)setClientDataForKey:(NSString *)key value:(id)value } - (id)clientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID +{ + return [self.temporaryMetaDataCache objectForKey:[NSString stringWithFormat:@"%@:%@", key, endpointID]]; +} + +- (void)setClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID value:(id)value { if (self.temporaryMetaDataCache == nil) { self.temporaryMetaDataCache = [NSMutableDictionary dictionary]; @@ -1704,11 +1709,6 @@ - (void)setClientDataForKey:(NSString *)key value:(id)value [self.temporaryMetaDataCache setObject:value forKey:[NSString stringWithFormat:@"%@:%@", key, endpointID]]; } -- (void)setClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID value:(id)value -{ - return [self.temporaryMetaDataCache objectForKey:[NSString stringWithFormat:@"%@:%@", key, endpointID]]; -} - @end @implementation MTRDevice (Deprecated)