From a8ed80cf69a9766c161673ce15c32ae96968d39b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 16 Feb 2017 00:00:57 -0800 Subject: cydia.addPipelinedHost was never actually used :D. --- MobileCydia.mm | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 95bbca7..b6c0ca8 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -800,7 +800,6 @@ static _H SessionData_; static _H HostConfig_; static _H BridgedHosts_; static _H InsecureHosts_; -static _H PipelinedHosts_; static _H CachedURLs_; static NSString *kCydiaProgressEventTypeError = @"Error"; @@ -4541,8 +4540,6 @@ static _H Diversions_; return @"addInsecureHost"; else if (selector == @selector(addInternalRedirect::)) return @"addInternalRedirect"; - else if (selector == @selector(addPipelinedHost:scheme:)) - return @"addPipelinedHost"; else if (selector == @selector(addSource:::)) return @"addSource"; else if (selector == @selector(addTrivialSource:)) @@ -4775,14 +4772,6 @@ static _H Diversions_; [InsecureHosts_ addObject:host]; } } -- (void) addPipelinedHost:(NSString *)host scheme:(NSString *)scheme { -@synchronized (HostConfig_) { - if (scheme != (id) [WebUndefined undefined]) - host = [NSString stringWithFormat:@"%@:%@", [scheme lowercaseString], host]; - - [PipelinedHosts_ addObject:host]; -} } - - (void) popViewController:(NSNumber *)value { if (value == (id) [WebUndefined undefined]) value = [NSNumber numberWithBool:YES]; @@ -10113,16 +10102,7 @@ MSHook(id, NSURLConnection$init$, NSURLConnection *self, SEL _cmd, NSURLRequest NSURL *url([copy URL]); - NSString *host([url host]); - NSString *scheme([[url scheme] lowercaseString]); - - NSString *compound([NSString stringWithFormat:@"%@:%@", scheme, host]); - @synchronized (HostConfig_) { - if ([copy respondsToSelector:@selector(setHTTPShouldUsePipelining:)]) - if ([PipelinedHosts_ containsObject:host] || [PipelinedHosts_ containsObject:compound]) - [copy setHTTPShouldUsePipelining:YES]; - if (NSString *control = [copy valueForHTTPHeaderField:@"Cache-Control"]) if ([control isEqualToString:@"max-age=0"]) if ([CachedURLs_ containsObject:url]) { @@ -10220,7 +10200,6 @@ int main(int argc, char *argv[]) { @synchronized (HostConfig_) { BridgedHosts_ = [NSMutableSet setWithCapacity:4]; InsecureHosts_ = [NSMutableSet setWithCapacity:4]; - PipelinedHosts_ = [NSMutableSet setWithCapacity:4]; CachedURLs_ = [NSMutableSet setWithCapacity:32]; } -- cgit v1.2.3