Skip to content

Commit e3972f6

Browse files
restyled-commitsnivi-apple
authored andcommitted
Restyled by clang-format
1 parent c253683 commit e3972f6

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

+7-9
Original file line numberDiff line numberDiff line change
@@ -2773,8 +2773,8 @@ - (void)_removeAttributes:(NSSet *)toBeRemovedAttributes fromCluster:(MTRCluster
27732773
[self.deviceController.controllerDataStore clearStoredClusterDataForNodeID:self.nodeID endpointID:clusterPathToRemoveAttributesFrom.endpoint clusterID:clusterPathToRemoveAttributesFrom.cluster];
27742774
}
27752775

2776-
- (void) _pruneOrphanedEndpoints:(NSDictionary *)previousPartsListValue
2777-
newPartsListValue:(NSDictionary *)newPartsListValue
2776+
- (void)_pruneOrphanedEndpoints:(NSDictionary *)previousPartsListValue
2777+
newPartsListValue:(NSDictionary *)newPartsListValue
27782778
{
27792779
// 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.
27802780
// Also remove it from the data store.
@@ -2794,9 +2794,9 @@ - (void) _pruneOrphanedEndpoints:(NSDictionary *)previousPartsListValue
27942794
}
27952795
}
27962796

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
28002800
{
28012801
// If the server list changed and clusters were removed, remove the clusters from the _persistedClusters, _persistedClusterData and _clusterDataToPersist for all those clusters.
28022802
// Also remove it from the data store.
@@ -2815,8 +2815,8 @@ - (void) _pruneOrphanedClusters:(MTRAttributePath *)attributePath
28152815
[self _removeClusters:[clusterPathsToRemove copy]];
28162816
}
28172817

2818-
- (void) _pruneOrphanedAttributes:(MTRAttributePath *)attributePath
2819-
newAttributeListValue:(NSDictionary *)newAttributeListValue
2818+
- (void)_pruneOrphanedAttributes:(MTRAttributePath *)attributePath
2819+
newAttributeListValue:(NSDictionary *)newAttributeListValue
28202820
{
28212821
// If the attribute list changed and attributes were removed, remove the attributes from the _clusterDataToPersist for that cluster and endpoint.
28222822
// 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
28352835
[self.deviceController.controllerDataStore removeAttributes:[toBeRemovedAttributes copy] fromCluster:clusterPathToRemoveAttributesFrom forNodeID:self.nodeID];
28362836
}
28372837

2838-
2839-
28402838
- (void)_pruneOrphanedEndpointsAndClusters:(MTRAttributePath *)attributePath
28412839
previousValue:(NSDictionary *)previousValue
28422840
attributeDataValue:(NSDictionary *)attributeDataValue

0 commit comments

Comments
 (0)