From 93da0852d13f20976fc1291d62920506c895d5f5 Mon Sep 17 00:00:00 2001 From: Hanton Yang Date: Wed, 4 Sep 2019 23:05:30 -0700 Subject: [PATCH] Remove unused headers (#1358) Summary: ### Changes in this pull request * Improve compilation time by reducing unnecessary compilation dependencies * More clean code ### Checklist - [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) Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1358 Differential Revision: D17200761 Pulled By: lorixx fbshipit-source-id: 9c6bca4d3d5e2e4b35125c7a12e483d58993c4e8 --- Source/Common/IGListDiff.mm | 1 - Source/Common/IGListIndexSetResult.m | 2 -- Source/Common/IGListMoveIndex.m | 1 - Source/Common/IGListMoveIndexPath.m | 3 --- Source/IGListAdapterUpdater.m | 2 -- Source/IGListBindingSectionController.m | 3 --- Source/IGListStackedSectionController.m | 1 - Source/Internal/IGListAdapter+UICollectionView.m | 1 - Source/Internal/IGListDebugger.m | 1 - Source/Internal/IGListWorkingRangeHandler.mm | 4 ---- .../Internal/UICollectionViewLayout+InteractiveReordering.m | 2 -- 11 files changed, 21 deletions(-) diff --git a/Source/Common/IGListDiff.mm b/Source/Common/IGListDiff.mm index f2150a73..b3e317a0 100644 --- a/Source/Common/IGListDiff.mm +++ b/Source/Common/IGListDiff.mm @@ -12,7 +12,6 @@ #import #import -#import #import #import "IGListIndexPathResultInternal.h" diff --git a/Source/Common/IGListIndexSetResult.m b/Source/Common/IGListIndexSetResult.m index 5a87ac26..74853e58 100644 --- a/Source/Common/IGListIndexSetResult.m +++ b/Source/Common/IGListIndexSetResult.m @@ -8,8 +8,6 @@ #import "IGListIndexSetResult.h" #import "IGListIndexSetResultInternal.h" -#import - @implementation IGListIndexSetResult { NSMapTable, NSNumber *> *_oldIndexMap; NSMapTable, NSNumber *> *_newIndexMap; diff --git a/Source/Common/IGListMoveIndex.m b/Source/Common/IGListMoveIndex.m index 313a1a7c..dee66f4d 100644 --- a/Source/Common/IGListMoveIndex.m +++ b/Source/Common/IGListMoveIndex.m @@ -6,7 +6,6 @@ */ #import "IGListMoveIndex.h" -#import "IGListMoveIndexInternal.h" @implementation IGListMoveIndex diff --git a/Source/Common/IGListMoveIndexPath.m b/Source/Common/IGListMoveIndexPath.m index e225e6f3..75177942 100644 --- a/Source/Common/IGListMoveIndexPath.m +++ b/Source/Common/IGListMoveIndexPath.m @@ -6,9 +6,6 @@ */ #import "IGListMoveIndexPath.h" -#import "IGListMoveIndexPathInternal.h" - -#import @implementation IGListMoveIndexPath diff --git a/Source/IGListAdapterUpdater.m b/Source/IGListAdapterUpdater.m index 464353f8..2a8022d3 100644 --- a/Source/IGListAdapterUpdater.m +++ b/Source/IGListAdapterUpdater.m @@ -9,8 +9,6 @@ #import "IGListAdapterUpdaterInternal.h" #import -#import -#import #import #import diff --git a/Source/IGListBindingSectionController.m b/Source/IGListBindingSectionController.m index d18c5844..499e2510 100644 --- a/Source/IGListBindingSectionController.m +++ b/Source/IGListBindingSectionController.m @@ -8,10 +8,7 @@ #import "IGListBindingSectionController.h" #import -#import -#import #import -#import #import "IGListArrayUtilsInternal.h" diff --git a/Source/IGListStackedSectionController.m b/Source/IGListStackedSectionController.m index 385b07fb..b288dddf 100644 --- a/Source/IGListStackedSectionController.m +++ b/Source/IGListStackedSectionController.m @@ -10,7 +10,6 @@ #import #import -#import #import "IGListSectionControllerInternal.h" diff --git a/Source/Internal/IGListAdapter+UICollectionView.m b/Source/Internal/IGListAdapter+UICollectionView.m index aa6f7356..fcef6388 100644 --- a/Source/Internal/IGListAdapter+UICollectionView.m +++ b/Source/Internal/IGListAdapter+UICollectionView.m @@ -11,7 +11,6 @@ #import #import #import -#import @implementation IGListAdapter (UICollectionView) diff --git a/Source/Internal/IGListDebugger.m b/Source/Internal/IGListDebugger.m index f4ccf2f2..bb55efda 100644 --- a/Source/Internal/IGListDebugger.m +++ b/Source/Internal/IGListDebugger.m @@ -7,7 +7,6 @@ #import "IGListDebugger.h" -#import "IGListDebuggingUtilities.h" #import "IGListAdapter+DebugDescription.h" @implementation IGListDebugger diff --git a/Source/Internal/IGListWorkingRangeHandler.mm b/Source/Internal/IGListWorkingRangeHandler.mm index 692ab4f7..031903a2 100644 --- a/Source/Internal/IGListWorkingRangeHandler.mm +++ b/Source/Internal/IGListWorkingRangeHandler.mm @@ -9,14 +9,10 @@ #import #import -#import #import #import #import -#import - -#import "IGListWorkingRangeDelegate.h" struct _IGListWorkingRangeHandlerIndexPath { NSInteger section; diff --git a/Source/Internal/UICollectionViewLayout+InteractiveReordering.m b/Source/Internal/UICollectionViewLayout+InteractiveReordering.m index 1f2239ba..242b1b36 100644 --- a/Source/Internal/UICollectionViewLayout+InteractiveReordering.m +++ b/Source/Internal/UICollectionViewLayout+InteractiveReordering.m @@ -7,9 +7,7 @@ #import "UICollectionViewLayout+InteractiveReordering.h" -#import #import -#import #import #import