[General] Remove dead code, check optional protocol selector before calling (#1970)

This commit is contained in:
Adlai Holler
2016-07-22 13:09:28 -07:00
committed by GitHub
parent 050fb626fa
commit 7ec6f07953
8 changed files with 6 additions and 58 deletions

View File

@@ -1059,11 +1059,6 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
return ASInterfaceStateForDisplayNode(self.collectionNode, self.window);
}
- (NSArray *)rangeController:(ASRangeController *)rangeController nodesAtIndexPaths:(NSArray *)indexPaths
{
return [_dataController nodesAtIndexPaths:indexPaths];
}
- (ASDisplayNode *)rangeController:(ASRangeController *)rangeController nodeAtIndexPath:(NSIndexPath *)indexPath
{
return [_dataController nodeAtIndexPath:indexPath];