Skip to content

Commit a9409c5

Browse files
author
Christopher J. Brody
committed
ios: remove extra blank lines
1 parent f6ff48b commit a9409c5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/ios/CDVNotification.m

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,12 @@ @implementation CDVNotification
3939
*/
4040
- (void)showDialogWithMessage:(NSString*)message title:(NSString*)title buttons:(NSArray*)buttons defaultText:(NSString*)defaultText callbackId:(NSString*)callbackId dialogType:(NSString*)dialogType
4141
{
42-
4342
int count = (int)[buttons count];
4443
#ifdef __IPHONE_8_0
4544
if (NSClassFromString(@"UIAlertController")) {
46-
4745
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
4846

4947
if ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.3) {
50-
5148
CGRect alertFrame = [UIScreen mainScreen].applicationFrame;
5249

5350
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
@@ -101,7 +98,6 @@ - (void)showDialogWithMessage:(NSString*)message title:(NSString*)title buttons:
10198
if ([alertList count]==1) {
10299
[self presentAlertcontroller];
103100
}
104-
105101
}
106102
else
107103
{
@@ -116,8 +112,6 @@ - (void)showDialogWithMessage:(NSString*)message title:(NSString*)title buttons:
116112

117113
alertView.callbackId = callbackId;
118114

119-
120-
121115
for (int n = 0; n < count; n++) {
122116
[alertView addButtonWithTitle:[buttons objectAtIndex:n]];
123117
}
@@ -132,7 +126,6 @@ - (void)showDialogWithMessage:(NSString*)message title:(NSString*)title buttons:
132126
#ifdef __IPHONE_8_0
133127
}
134128
#endif
135-
136129
}
137130

138131
- (void)alert:(CDVInvokedUrlCommand*)command
@@ -239,15 +232,13 @@ -(UIViewController *)getTopPresentedViewController {
239232
}
240233

241234
-(void)presentAlertcontroller {
242-
243235
__weak CDVNotification* weakNotif = self;
244236
[self.getTopPresentedViewController presentViewController:[alertList firstObject] animated:YES completion:^{
245237
[alertList removeObject:[alertList firstObject]];
246238
if ([alertList count]>0) {
247239
[weakNotif presentAlertcontroller];
248240
}
249241
}];
250-
251242
}
252243

253244
@end

0 commit comments

Comments
 (0)