]> git.saurik.com Git - cydia.git/commitdiff
cydia.addPipelinedHost was never actually used :D.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 16 Feb 2017 08:00:57 +0000 (00:00 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 16 Feb 2017 08:00:57 +0000 (00:00 -0800)
MobileCydia.mm

index 95bbca774d3273d3cc1e25d541da91a9a45292ff..b6c0ca8511065128c968f03883590c0c49bc5092 100644 (file)
@@ -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];
     }