diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2017-02-16 00:00:57 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2017-02-16 00:00:57 -0800 |
commit | a8ed80cf69a9766c161673ce15c32ae96968d39b (patch) | |
tree | 5e68e63f410428e921d6940c1f8b374bca731d88 | |
parent | 5479f823a2110820e389a36baa8a100aef2e6485 (diff) |
cydia.addPipelinedHost was never actually used :D.
-rw-r--r-- | MobileCydia.mm | 21 |
1 files changed, 0 insertions, 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<NSMutableDictionary> SessionData_; static _H<NSObject> HostConfig_; static _H<NSMutableSet> BridgedHosts_; static _H<NSMutableSet> InsecureHosts_; -static _H<NSMutableSet> PipelinedHosts_; static _H<NSMutableSet> CachedURLs_; static NSString *kCydiaProgressEventTypeError = @"Error"; @@ -4541,8 +4540,6 @@ static _H<NSMutableSet> 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<NSMutableSet> 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]; } |