Delete dead statusBarPadding iOS code (flutter/engine#39682)

This commit is contained in:
Jenn Magder 2023-02-16 11:07:03 -08:00 committed by GitHub
parent 5efd6934a5
commit 6cf3c90e27

View File

@ -1284,15 +1284,6 @@ static flutter::PointerData::DeviceKind DeviceKindFromTouchType(UITouch* touch)
}
}
- (CGFloat)statusBarPadding {
UIScreen* screen = self.view.window.screen;
CGRect statusFrame = [UIApplication sharedApplication].statusBarFrame;
CGRect viewFrame = [self.view convertRect:self.view.bounds
toCoordinateSpace:screen.coordinateSpace];
CGRect intersection = CGRectIntersection(statusFrame, viewFrame);
return CGRectIsNull(intersection) ? 0.0 : intersection.size.height;
}
- (void)viewDidLayoutSubviews {
CGRect viewBounds = self.view.bounds;
CGFloat scale = [UIScreen mainScreen].scale;