From cd105e9b3d1075867ad375dbd28ab545d9388ece Mon Sep 17 00:00:00 2001 From: nixzhu Date: Thu, 15 Oct 2015 20:18:54 +0800 Subject: [PATCH] clean some println --- Yep/ViewControllers/PickPhotos/ImageCacheController.swift | 6 ++---- Yep/Views/Cells/Feed/FeedCell.swift | 2 +- Yep/Views/Feed/FeedView.swift | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Yep/ViewControllers/PickPhotos/ImageCacheController.swift b/Yep/ViewControllers/PickPhotos/ImageCacheController.swift index ad8e0da8..26de1f0c 100644 --- a/Yep/ViewControllers/PickPhotos/ImageCacheController.swift +++ b/Yep/ViewControllers/PickPhotos/ImageCacheController.swift @@ -35,10 +35,8 @@ class ImageCacheController { updatedCache.addIndex(path.item) } - println("images: \(images), \(visibleCells.count), \(updatedCache.lastIndex), \(cachePreheatSize)") let minCache = max(0, updatedCache.firstIndex - cachePreheatSize) let maxCache = min(images.count - 1, updatedCache.lastIndex + cachePreheatSize) - println("cache: \(minCache), \(maxCache)") updatedCache.addIndexesInRange(NSMakeRange(minCache, maxCache - minCache + 1)) @@ -47,7 +45,7 @@ class ImageCacheController { if !updatedCache.containsIndex(index) { let asset: PHAsset! = self.images[index] as! PHAsset self.imageCache.stopCachingImagesForAssets([asset], targetSize: self.targetSize, contentMode: self.contentMode, options: nil) - print("Stopping caching image \(index)") + //println("Stopping caching image \(index)") } } @@ -56,7 +54,7 @@ class ImageCacheController { if !self.cachedIndices.containsIndex(index) { let asset: PHAsset! = self.images[index] as! PHAsset self.imageCache.startCachingImagesForAssets([asset], targetSize: self.targetSize, contentMode: self.contentMode, options: nil) - print("Starting caching image \(index)") + //println("Starting caching image \(index)") } } diff --git a/Yep/Views/Cells/Feed/FeedCell.swift b/Yep/Views/Cells/Feed/FeedCell.swift index 850a5e36..7d9d3ea8 100644 --- a/Yep/Views/Cells/Feed/FeedCell.swift +++ b/Yep/Views/Cells/Feed/FeedCell.swift @@ -183,7 +183,7 @@ extension FeedCell: UICollectionViewDataSource, UICollectionViewDelegate { if let imageURL = attachmentURLs[safe: indexPath.item] { - println("attachment imageURL: \(imageURL)") + //println("attachment imageURL: \(imageURL)") cell.configureWithImageURL(imageURL) } diff --git a/Yep/Views/Feed/FeedView.swift b/Yep/Views/Feed/FeedView.swift index e8713718..03856a85 100644 --- a/Yep/Views/Feed/FeedView.swift +++ b/Yep/Views/Feed/FeedView.swift @@ -229,7 +229,7 @@ extension FeedView: UICollectionViewDataSource, UICollectionViewDelegate { let imageURL = attachmentURLs[indexPath.item] - println("attachment imageURL: \(imageURL)") + //println("attachment imageURL: \(imageURL)") cell.configureWithImageURL(imageURL)