Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4a90fbc

Browse files
authored
Delete dead statusBarPadding iOS code (#39682)
1 parent bb78631 commit 4a90fbc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

shell/platform/darwin/ios/framework/Source/FlutterViewController.mm

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,15 +1284,6 @@ - (void)updateViewportMetrics {
12841284
}
12851285
}
12861286

1287-
- (CGFloat)statusBarPadding {
1288-
UIScreen* screen = self.view.window.screen;
1289-
CGRect statusFrame = [UIApplication sharedApplication].statusBarFrame;
1290-
CGRect viewFrame = [self.view convertRect:self.view.bounds
1291-
toCoordinateSpace:screen.coordinateSpace];
1292-
CGRect intersection = CGRectIntersection(statusFrame, viewFrame);
1293-
return CGRectIsNull(intersection) ? 0.0 : intersection.size.height;
1294-
}
1295-
12961287
- (void)viewDidLayoutSubviews {
12971288
CGRect viewBounds = self.view.bounds;
12981289
CGFloat scale = [UIScreen mainScreen].scale;

0 commit comments

Comments
 (0)