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

Commit

Permalink
Make deprecated numberOfItemsInSection methods optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai Holler committed Oct 14, 2016
1 parent 372f2ca commit 3927c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions AsyncDisplayKit/ASCollectionViewProtocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ NS_ASSUME_NONNULL_BEGIN
*/
@protocol ASCommonCollectionDataSource <NSObject>

@required
@optional

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section ASDISPLAYNODE_DEPRECATED;

@optional

- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView ASDISPLAYNODE_DEPRECATED;

- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath ASDISPLAYNODE_DEPRECATED;
Expand Down
4 changes: 1 addition & 3 deletions AsyncDisplayKit/ASTableViewProtocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ NS_ASSUME_NONNULL_BEGIN
*/
@protocol ASCommonTableDataSource <NSObject>

@required
@optional

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section ASDISPLAYNODE_DEPRECATED;

@optional

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView ASDISPLAYNODE_DEPRECATED;

- (nullable NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section;
Expand Down

0 comments on commit 3927c1d

Please sign in to comment.