Merge pull request #11 from zwang/master

resolve compile warning about variable never read
This commit is contained in:
Diego Sánchez 2015-12-18 00:47:56 +01:00
commit fef8a20482
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@ public class ChatCollectionViewLayout: UICollectionViewLayout {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { () -> Void in
// Dealloc of layout with 5000 items take 25 ms on tests on iPhone 4s
// This moves dealloc out of main thread
oldLayoutModel = nil
if oldLayoutModel != nil {
// Use nil check above to remove compiler warning: Variable 'oldLayoutModel' was written to, but never read
oldLayoutModel = nil
}
}
}