From 68d2f019cfab3e5464c3aa1ce110f97a224f9c0c Mon Sep 17 00:00:00 2001 From: Oleg Kornienko Date: Tue, 30 Jan 2024 12:46:16 +0300 Subject: [PATCH] Remove configureUpdater --- Source/Private/ASIGListAdapterBasedDataSource.mm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Source/Private/ASIGListAdapterBasedDataSource.mm b/Source/Private/ASIGListAdapterBasedDataSource.mm index 6a981f236..bb5653127 100644 --- a/Source/Private/ASIGListAdapterBasedDataSource.mm +++ b/Source/Private/ASIGListAdapterBasedDataSource.mm @@ -59,8 +59,6 @@ - (instancetype)initWithListAdapter:(IGListAdapter *)listAdapter collectionDeleg #if IG_LIST_COLLECTION_VIEW [ASIGListAdapterBasedDataSource setASCollectionViewSuperclass]; #endif - [ASIGListAdapterBasedDataSource configureUpdater:listAdapter.updater]; - ASDisplayNodeAssert([listAdapter conformsToProtocol:@protocol(UICollectionViewDataSource)], @"Expected IGListAdapter to conform to UICollectionViewDataSource."); ASDisplayNodeAssert([listAdapter conformsToProtocol:@protocol(UICollectionViewDelegateFlowLayout)], @"Expected IGListAdapter to conform to UICollectionViewDelegateFlowLayout."); _listAdapter = listAdapter; @@ -346,20 +344,6 @@ + (void)setASCollectionViewSuperclass } #endif -/// Ensure updater won't call reloadData on us. -+ (void)configureUpdater:(id)updater -{ - // Cast to NSObject will be removed after https://github.com/Instagram/IGListKit/pull/435 - if ([(id)updater isKindOfClass:[IGListAdapterUpdater class]]) { - [(IGListAdapterUpdater *)updater setAllowsBackgroundReloading:NO]; - } else { - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - NSLog(@"WARNING: Use of non-%@ updater with AsyncDisplayKit is discouraged. Updater: %@", NSStringFromClass([IGListAdapterUpdater class]), updater); - }); - } -} - + (ASSupplementarySourceOverrides)overridesForSupplementarySourceClass:(Class)c { static NSCache *cache;