From 80fa8a590876e0d29055b9ddbfa8670c1f83759e Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Mon, 25 Nov 2024 21:23:09 -0800 Subject: [PATCH] iOS: Delete FlutterPlatformViewsController.layerPoolSize (flutter/engine#56806) This field is unused in the codebase/tests. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- .../ios/framework/Source/FlutterPlatformViewsController.h | 3 --- .../ios/framework/Source/FlutterPlatformViewsController.mm | 4 ---- 2 files changed, 7 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.h b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.h index 2c2dea71e3..9ce3c7f8ac 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.h +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.h @@ -125,9 +125,6 @@ - (size_t)embeddedViewCount; -// TODO(cbracken): Delete. This is unused. -- (size_t)layerPoolSize; - // Returns the `FlutterPlatformView`'s `view` object associated with the view_id. // // If the `PlatformViewsController` does not contain any `FlutterPlatformView` object or diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.mm index f6c2f0a2ad..3498ef324f 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.mm @@ -538,10 +538,6 @@ BOOL canApplyBlurBackdrop = YES; return self.compositionOrder.size(); } -- (size_t)layerPoolSize { - return self.layerPool->size(); -} - - (UIView*)platformViewForId:(int64_t)viewId { return [self flutterTouchInterceptingViewForId:viewId].embeddedView; }