Skip to content

Commit

Permalink
removed maxqueueurlcount
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Sichermann committed May 18, 2012
1 parent c5faf09 commit 87a4d21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
5 changes: 0 additions & 5 deletions Classes/FullyLoaded.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
18 changes: 0 additions & 18 deletions Classes/FullyLoaded.m
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -117,15 +115,6 @@ + (void)initialize {
}
#endif

+ (void)setMaximumQueuedURLCount:(NSUInteger)count {
gMaxQueuedURLCount = count;
}

+ (NSUInteger)maximumQueuedURLCount {
return gMaxQueuedURLCount;
}



- (void)dealloc {
self.imageCachePath = nil;
Expand Down Expand Up @@ -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];
}
}
Expand Down

0 comments on commit 87a4d21

Please sign in to comment.