     }
     
     func collectionView(_ collectionView: UICollectionView, didEndDisplaying cell: UICollectionViewCell, forItemAt indexPath: IndexPath) {
-        guard let cell = cell as? TTAAssetCollectionViewCell,
-            let requestID = cell.asset.requestID else { return }
-        TTAImagePickerManager.cancelImageRequest(requestID)
-    }
-    
-    func scrollViewDidScroll(_ scrollView: UIScrollView) {
-        _updateCachedAssets()
+        guard let cell = cell as? TTAAssetCollectionViewCell else { return }
+        TTAImagePickerManager.cancelImageRequest(cell.imageRequestID)
     }
 }
 

        }
    }
    
    // MARK: - Asset Caching
    
    var previousPreheatRect = CGRect.zero
    
    init(collection: TTAAssetCollection) {
        self.collection = collection
        super.init(nibName: nil, bundle: nil)

    }
    
    func asset(at indexPath: IndexPath) -> TTAAsset {
        return collection.assets[indexPath.item]
    }
}

