From c5f64061a0acec806bae9c1809c13050b1ab3e82 Mon Sep 17 00:00:00 2001 From: Bofei Zhu Date: Thu, 28 Jun 2018 12:21:04 -0700 Subject: [PATCH] Removed unused variable (#1188) Summary: Issue fixed: #1187 - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/1188 Differential Revision: D8204493 Pulled By: rnystrom fbshipit-source-id: 52bf75e6436d95b127d44302c4eb6f0bfdc1da08 --- Source/IGListAdapter.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index fed80644..936f9b81 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -1080,8 +1080,7 @@ - (void)performBatchAnimated:(BOOL)animated updates:(void (^)(id))updates completion:(void (^)(BOOL))completion { IGAssertMainThread(); IGParameterAssert(updates != nil); - UICollectionView *collectionView = self.collectionView; - IGAssert(collectionView != nil, @"Performing batch updates without a collection view."); + IGAssert(self.collectionView != nil, @"Performing batch updates without a collection view."); [self _enterBatchUpdates];