diff --git a/Source/Details/ASDataController.mm b/Source/Details/ASDataController.mm index f48c8dfc7..71282be8c 100644 --- a/Source/Details/ASDataController.mm +++ b/Source/Details/ASDataController.mm @@ -452,14 +452,6 @@ - (void)waitUntilAllUpdatesAreProcessed - (BOOL)isProcessingUpdates { ASDisplayNodeAssertMainThread(); -#if ASDISPLAYNODE_ASSERTIONS_ENABLED - // Using dispatch_group_wait is much more expensive than our manually managed count, but it's crucial they always match. - BOOL editingTransactionQueueBusy = dispatch_group_wait(_editingTransactionGroup, DISPATCH_TIME_NOW) != 0; - ASDisplayNodeAssert(editingTransactionQueueBusy == (_editingTransactionGroupCount > 0), - @"editingTransactionQueueBusy = %@, but _editingTransactionGroupCount = %d !", - editingTransactionQueueBusy ? @"YES" : @"NO", (int)_editingTransactionGroupCount); -#endif - return _mainSerialQueue.numberOfScheduledBlocks > 0 || _editingTransactionGroupCount > 0; }