diff --git a/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.mm b/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.mm index 512738d52..34c3b8f0e 100644 --- a/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.mm +++ b/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.mm @@ -91,15 +91,6 @@ responder); }]; - [connection receive:@"getAllNodes" - withBlock:^(NSDictionary* params, id responder) { - FlipperPerformBlockOnMainThread( - ^{ - [weakSelf onCallGetAllNodesWithResponder:responder]; - }, - responder); - }]; - [connection receive:@"getNodes" withBlock:^(NSDictionary* params, id responder) { FlipperPerformBlockOnMainThread( @@ -185,19 +176,6 @@ [responder success:rootNode]; } -- (void)populateAllNodesFromNode:(nonnull NSString*)identifier - inDictionary: - (nonnull NSMutableDictionary*) - mutableDict { - NSDictionary* nodeDict = [self getNode:identifier]; - mutableDict[identifier] = nodeDict; - NSArray* arr = nodeDict[@"children"]; - for (NSString* childIdentifier in arr) { - [self populateAllNodesFromNode:childIdentifier inDictionary:mutableDict]; - } - return; -} - - (void)populateAllNodesFromNode:(nonnull NSString*)identifier inArray:(nonnull NSMutableArray*) mutableArray { @@ -212,26 +190,6 @@ } } -- (void)onCallGetAllNodesWithResponder:(nonnull id)responder { - NSMutableArray* allNodes = @[].mutableCopy; - NSString* identifier = [self trackObject:_rootNode]; - NSDictionary* rootNode = [self getNode:identifier]; - if (!rootNode) { - return [responder error:@{ - @"error" : [NSString - stringWithFormat: - @"getNode returned nil for the rootNode %@, while getting all the nodes", - identifier] - }]; - } - [allNodes addObject:rootNode]; - NSMutableDictionary* allNodesDict = @{}.mutableCopy; - [self populateAllNodesFromNode:identifier inDictionary:allNodesDict]; - [responder success:@{ - @"allNodes" : @{@"rootElement" : identifier, @"elements" : allNodesDict} - }]; -} - - (NSMutableArray*)getChildrenForNode:(id)node withDescriptor:(SKNodeDescriptor*)descriptor { NSMutableArray* children = [NSMutableArray new];