Fix compiler complaining about unused variable in release builds (#2583)

This commit is contained in:
Adlai Holler 2016-11-09 14:31:05 +09:00 committed by GitHub
parent 88fecbe3eb
commit 9385425d07

View File

@ -730,9 +730,11 @@ NSString *NSStringFromASHierarchyChangeType(_ASHierarchyChangeType changeType)
+ (void)ensureItemChanges:(NSArray<_ASHierarchyItemChange *> *)changes ofSameType:(_ASHierarchyChangeType)changeType
{
#if ASDISPLAYNODE_ASSERTIONS_ENABLED
for (_ASHierarchyItemChange *change in changes) {
NSAssert(change.changeType == changeType, @"The map we created must all be of the same changeType as of now");
}
#endif
}
- (_ASHierarchyItemChange *)changeByFinalizingType