Skip to content
Browse files

removed maxqueueurlcount

  • Loading branch information...
1 parent c5faf09 commit 87a4d21785420e7f01d78bc8f830939fa77ac5c0 Jan Sichermann committed May 18, 2012
Showing with 0 additions and 23 deletions.
  1. +0 −5 Classes/FullyLoaded.h
  2. +0 −18 Classes/FullyLoaded.m
View
5 Classes/FullyLoaded.h
@@ -34,11 +34,6 @@
+ (FullyLoaded *)sharedFullyLoaded;
-// The maximum number of URLs in pending to be downloaded. FullyLoaded will evict the oldest added URL if the queue
-// doesn't have any more room to add new URLs. Defaults to 5.
-+ (void)setMaximumQueuedURLCount:(NSUInteger)count;
-+ (NSUInteger)maximumQueuedURLCount;
-
- (void)clearMemoryCache; // clear memory only, leave cache files
- (void)clearCache; // clear memory and remove cache files
- (void)resume;
View
18 Classes/FullyLoaded.m
@@ -50,8 +50,6 @@
static NSString * const FLIdleRunloopNotification = @"FLIdleRunloopNotification";
-static NSUInteger gMaxQueuedURLCount = 5;
-
// encapsulates the result created in the urlQueue thread to pass to main thread.
@interface FLResponse : NSObject
@@ -117,15 +115,6 @@ + (void)initialize {
}
#endif
-+ (void)setMaximumQueuedURLCount:(NSUInteger)count {
- gMaxQueuedURLCount = count;
-}
-
-+ (NSUInteger)maximumQueuedURLCount {
- return gMaxQueuedURLCount;
-}
-
-
- (void)dealloc {
self.imageCachePath = nil;
@@ -273,13 +262,6 @@ - (void)fetchOrEnqueueURL:(NSURL *)url {
[self fetchURL:url];
}
else {
-
- // make room for the new url
- if(self.urlQueue.count == [FullyLoaded maximumQueuedURLCount]){
- [self.pendingURLSet removeObject:[self.urlQueue objectAtIndex:0]];
- [self.urlQueue removeObjectAtIndex:0];
- }
-
[self.urlQueue addObject:url];
}
}

0 comments on commit 87a4d21

Please sign in to comment.
Something went wrong with that request. Please try again.