mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-10 09:29:39 +08:00
Fix xcode warnings (#23565)
Summary: As part of #22609, this fixes yet more warnings. - Adding more __unused to params. - Refactors `isPackagerRunning` to use NSURLSession. - Turns off suspicious comma warnings [iOS] [Fixed] - Xcode Warnings Pull Request resolved: https://github.com/facebook/react-native/pull/23565 Differential Revision: D14161151 Pulled By: cpojer fbshipit-source-id: 339874711eca718fc6151e84737ccc975225d736
This commit is contained in:
committed by
Facebook Github Bot
parent
9820c88877
commit
468ae234a6
@@ -181,17 +181,17 @@
|
||||
[_tableView reloadData];
|
||||
}
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
||||
- (NSInteger)tableView:(__unused UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
||||
{
|
||||
return [[_extraData objectAtIndex:section] count];
|
||||
}
|
||||
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
|
||||
- (CGFloat)tableView:(__unused UITableView *)tableView heightForHeaderInSection:(__unused NSInteger)section
|
||||
{
|
||||
return 40;
|
||||
}
|
||||
|
||||
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
||||
- (UIView *)tableView:(__unused UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
||||
{
|
||||
UIView *view = [UIView new];
|
||||
view.backgroundColor = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
|
||||
@@ -237,7 +237,7 @@
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||
- (NSInteger)numberOfSectionsInTableView:(__unused UITableView *)tableView
|
||||
{
|
||||
return _extraDataTitle.count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user