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

Commit

Permalink
Delete dead statusBarPadding iOS code (#39682)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman authored Feb 16, 2023
1 parent bb78631 commit 4a90fbc
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1284,15 +1284,6 @@ - (void)updateViewportMetrics {
}
}

- (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;
Expand Down

0 comments on commit 4a90fbc

Please sign in to comment.