Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
abbreviate syntax for unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Jul 9, 2015
1 parent b70e6f5 commit 00f9a47
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platform/ios/MGLMapboxEvents.m
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,7 @@ - (void) postEvents:(NS_ARRAY_OF(MGLMapboxEventAttributes *) *)events {
[request setHTTPBody:jsonData];

// Send non blocking HTTP Request to server
NSURLSessionDataTask *task = [_session dataTaskWithRequest:request completionHandler:^(__unused NSData * __nullable data, __unused NSURLResponse * __nullable response, __unused NSError * __nullable error)
{
}];
[task resume];
[[_session dataTaskWithRequest:request] resume];
}
});
}
Expand Down

2 comments on commit 00f9a47

@incanus
Copy link
Contributor Author

@incanus incanus commented on 00f9a47 Jul 9, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this shouldn't work @bleege @1ec5? Causing some sort of problem on Travis Xcode 6.4 per https://travis-ci.org/mapbox/mapbox-gl-native/jobs/70173552#L525. If we're not using the block, we should use the block-less initializer, and we can combine the lines as well to resume right away.

@1ec5
Copy link
Contributor

@1ec5 1ec5 commented on 00f9a47 Jul 9, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's expecting fewer parameters than we're giving it for some reason.

Please sign in to comment.