@@ -2773,8 +2773,8 @@ - (void)_removeAttributes:(NSSet *)toBeRemovedAttributes fromCluster:(MTRCluster
2773
2773
[self .deviceController.controllerDataStore clearStoredClusterDataForNodeID: self .nodeID endpointID: clusterPathToRemoveAttributesFrom.endpoint clusterID: clusterPathToRemoveAttributesFrom.cluster];
2774
2774
}
2775
2775
2776
- - (void ) _pruneOrphanedEndpoints : (NSDictionary *)previousPartsListValue
2777
- newPartsListValue : (NSDictionary *)newPartsListValue
2776
+ - (void )_pruneOrphanedEndpoints : (NSDictionary *)previousPartsListValue
2777
+ newPartsListValue : (NSDictionary *)newPartsListValue
2778
2778
{
2779
2779
// If the parts list changed and one or more endpoints were removed, remove all the clusters in _persistedClusters, _persistedClusterData and _clusterDataToPersist for all those endpoints.
2780
2780
// Also remove it from the data store.
@@ -2794,9 +2794,9 @@ - (void) _pruneOrphanedEndpoints:(NSDictionary *)previousPartsListValue
2794
2794
}
2795
2795
}
2796
2796
2797
- - (void ) _pruneOrphanedClusters : (MTRAttributePath *)attributePath
2798
- previousServerListValue : (NSDictionary *)previousServerListValue
2799
- newServerListValue : (NSDictionary *)newServerListValue
2797
+ - (void )_pruneOrphanedClusters : (MTRAttributePath *)attributePath
2798
+ previousServerListValue : (NSDictionary *)previousServerListValue
2799
+ newServerListValue : (NSDictionary *)newServerListValue
2800
2800
{
2801
2801
// If the server list changed and clusters were removed, remove the clusters from the _persistedClusters, _persistedClusterData and _clusterDataToPersist for all those clusters.
2802
2802
// Also remove it from the data store.
@@ -2815,8 +2815,8 @@ - (void) _pruneOrphanedClusters:(MTRAttributePath *)attributePath
2815
2815
[self _removeClusters: [clusterPathsToRemove copy ]];
2816
2816
}
2817
2817
2818
- - (void ) _pruneOrphanedAttributes : (MTRAttributePath *)attributePath
2819
- newAttributeListValue : (NSDictionary *)newAttributeListValue
2818
+ - (void )_pruneOrphanedAttributes : (MTRAttributePath *)attributePath
2819
+ newAttributeListValue : (NSDictionary *)newAttributeListValue
2820
2820
{
2821
2821
// If the attribute list changed and attributes were removed, remove the attributes from the _clusterDataToPersist for that cluster and endpoint.
2822
2822
// Clear out the _peristedClusterData and data store cluster data. Update the data storage with updated cluster data.
@@ -2835,8 +2835,6 @@ - (void) _pruneOrphanedAttributes:(MTRAttributePath *)attributePath
2835
2835
[self .deviceController.controllerDataStore removeAttributes: [toBeRemovedAttributes copy ] fromCluster: clusterPathToRemoveAttributesFrom forNodeID: self .nodeID];
2836
2836
}
2837
2837
2838
-
2839
-
2840
2838
- (void )_pruneOrphanedEndpointsAndClusters : (MTRAttributePath *)attributePath
2841
2839
previousValue : (NSDictionary *)previousValue
2842
2840
attributeDataValue : (NSDictionary *)attributeDataValue
0 commit comments