mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
Remove assert from working range handler (#1418)
Summary: Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1418 This assert causes crashes on debug builds. While it's known that this algorithm is slow with a large number of items to work through, it doesn't seem to have been an issue for most when working with IGListKit. Removing this assertion to avoid crashes for others. Reviewed By: bdotdub Differential Revision: D19251924 fbshipit-source-id: c0e78d3963544b949bed823bdac9b39529ca5f9f
This commit is contained in:
parent
fcd452e366
commit
a9ecf5d476
1 changed files with 0 additions and 2 deletions
|
|
@ -124,8 +124,6 @@ typedef std::unordered_set<_IGListWorkingRangeHandlerIndexPath, _IGListWorkingRa
|
|||
workingRangeSectionControllers.insert({sectionController});
|
||||
}
|
||||
|
||||
IGAssert(workingRangeSectionControllers.size() < 1000, @"This algorithm is way too slow with so many objects:%lu", workingRangeSectionControllers.size());
|
||||
|
||||
// Tell any new section controllers that they have entered the working range
|
||||
for (const _IGListWorkingRangeHandlerSectionControllerWrapper &wrapper : workingRangeSectionControllers) {
|
||||
// Check if the item exists in the old working range item array.
|
||||
|
|
|
|||
Loading…
Reference in a new issue