Skip to content

Commit 53a3c25

Browse files
committed
Remove one useless variable height
The `height` variable is set but never used later in `UINavigationController+M13ProgressViewBar.m`. So I suggest to delete it currently. If we need this variable later, get the old logic from Git history.
1 parent 56f020c commit 53a3c25

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Classes/NavigationController/UINavigationController+M13ProgressViewBar.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,20 +250,13 @@ - (void)drawIndeterminateWithInterfaceOrientation:(UIInterfaceOrientation)interf
250250
//Calculate the frame of the navigation bar, based off the orientation.
251251
CGSize screenSize = [UIScreen mainScreen].bounds.size;
252252
CGFloat width = 0.0;
253-
CGFloat height = 0.0;
254253
//Calculate the width of the screen
255254
if (UIInterfaceOrientationIsLandscape(interfaceOrientation)) {
256255
//Use the maximum value
257256
width = MAX(screenSize.width, screenSize.height);
258-
if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
259-
height = 32.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
260-
} else {
261-
height = 44.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
262-
}
263257
} else {
264258
//Use the minimum value
265259
width = MIN(screenSize.width, screenSize.height);
266-
height = 44.0; //Hate hardcoding values, but autolayout doesn't work, and cant retreive the new height until after the animation completes.
267260
}
268261

269262
//Create the pattern image

0 commit comments

Comments
 (0)