mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Mark __unused completion block args
Summary: Catching a couple more build warnings introduced byb50f55026a
since https://github.com/facebook/react-native/pull/11797. Edit: and one more introduced byc68a708621
Tested the build with UIExplorer. Closes https://github.com/facebook/react-native/pull/11865 Differential Revision: D4415630 fbshipit-source-id: 1384d56770eea8665ede8bd9abe06cf34cd14b33
This commit is contained in:
parent
49d7c00500
commit
9e1e52f312
@ -345,7 +345,7 @@ static BOOL RCTAnyTouchesChanged(NSSet<UITouch *> *touches)
|
||||
|
||||
#pragma mark - UIGestureRecognizerDelegate
|
||||
|
||||
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
|
||||
- (BOOL)gestureRecognizer:(__unused UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
|
||||
{
|
||||
// Same condition for `failure of` as for `be prevented by`.
|
||||
return [self canBePreventedByGestureRecognizer:otherGestureRecognizer];
|
||||
|
@ -37,7 +37,7 @@ RCT_EXPORT_METHOD(operationComplete:(__unused int)token result:(id)profileData e
|
||||
|
||||
// Send the request
|
||||
NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
|
||||
NSURLSessionDataTask *sessionDataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *sessionError) {
|
||||
NSURLSessionDataTask *sessionDataTask = [session dataTaskWithRequest:request completionHandler:^(__unused NSData *data, __unused NSURLResponse *response, NSError *sessionError) {
|
||||
if (sessionError) {
|
||||
RCTLogWarn(@"JS CPU Profile data failed to send. Is the packager server running locally?\nDetails: %@", error);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user